# Install MacPorts (http://macports.org/)
cd ~/devel
# ...or wherever you keep dev stuff.
cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot co -d graphs-cvs mozilla/webtools/new-graph
ln -s `pwd`/graphs-cvs ~/Sites/
sudo port install mysql5
# follow directions and complete installation
echo "create database o_graphs; grant all privileges on o_graphs.* to o@'localhost' identified by 'o';" | mysql5 -uroot
mysql5 -uroot o_graphs < sql/schema.sql
sudo port install python25
sudo port install python_select
sudo python_select python25
sudo port install py25-mysql
curl -O http://oss.itsystementwicklung.de/download/pysqlite/2.4/2.4.1/pysqlite-2.4.1.tar.gz
tar -zxf pysqlite-2.4.1.tar.gz
cd pysqlite-2.4.1
sudo python setup.py install
sudo port install apache2
# Make sure .cgi runs CGI scripts
# Uncomment line 383:
# AddHandler cgi-script .cgi
# Be sure to disable Apple's apache
sudo /usr/sbin/apachectl stop
sudo /opt/local/apache2/bin/apachectl start
mkdir data
curl http://build-graphs.mozilla.org/db/dhtml/bl-bldlnx01_fx-linux-tbox-head > data/sample1.txt
chmod +x utils/import.py
./utils/import.py foo bar baz quux < data/sample1.txt
# visit http://localhost/~username/graphs-cvs/graph.html