brew install python
brew install cairo
brew install py2cairo
$ python
Python 2.7.3 (default, Jun 17 2012, 23:27:13)
[GCC 4.2.1 Compatible Apple Clang 3.1 (tags/Apple/clang-318.0.58)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import cairo
>>>
sudo mkdir /opt/graphite
chown root:admin /opt/graphite
chmod g+w /opt/graphite
cd /opt/graphite
virtualenv .ve
/opt/graphite/.ve/bin/pip install carbon
/opt/graphite/.ve/bin/pip install whisper
/opt/graphite/.ve/bin/pip install django
/opt/graphite/.ve/bin/pip install django-tagging
/opt/graphite/.ve/bin/pip install graphite-web
cd /opt/graphite/webapp/graphite
sudo python manage.py syncdb
sudo chown -R nobody:nobody /opt/graphite/storage/
cd /opt/graphite/conf
cp storage-schemas.conf.example storage-schemas.conf
cp carbon.conf.example carbon.conf
mkdir /opt/graphite/bin
ln -s /usr/local/share/python/carbon-cache.py bin
python ./bin/carbon-cache.py start
python /usr/local/share/python/run-graphite-devel-server.py /opt/graphite
http://localhost:8080
If it works correclty you should see a black image with "No Data" in the Graphite Composer. If you see a broken image, it's probably something to do with py2cairo and cairo.