Follow these steps to install graphite on OS X Mavericks.
- Homebrew
- Python 2.7
- Git
brew install cairo
brew install py2cairo
pip install Django==1.5
pip install django-tagging
sudo pip install carbon
pip install whisper
sudo pip install graphite-web
sudo pip install Twisted==11.1.0
sudo chown -R <your username>:staff /opt/graphite
cp /opt/graphite/conf/carbon.conf{.example,}
cp /opt/graphite/conf/storage-schemas.conf{.example,}
cd /opt/graphite/webapp/graphite
# Modify this file to change database backend (default is sqlite).
cp local_settings.py{.example,}
# Initialize database
python manage.py syncdb
python /opt/graphite/bin/carbon-cache.py start
python /opt/graphite/bin/run-graphite-devel-server.py /opt/graphite
Go to:
http://localhost:8080
You should see this if it works properly:
If you get a broken image, it most likely means that something is wrong py2cairo and cairo.
Check the debug output here:
http://localhost:8080/render
Add this to your .bashrc or .bash_profile:
alias carbon='python /opt/graphite/bin/carbon-cache.py'
alias graphite-web='python /opt/graphite/bin/run-graphite-devel-server.py /opt/graphite'
I've solved the issue above. When I did brew install cairo, it installed 1.14.2 which has the bug. I went ahead and installed a back version - In my case I chose 1.12.6. To do it,
type
brew versions cairo
If you don't have the versions command do this
brew tap homebrew/boneyard
brew versions cairo
You get this output:
1.14.2 git checkout 842ec2d /usr/local/Library/Formula/cairo.rb
1.14.0 git checkout e78bed9 /usr/local/Library/Formula/cairo.rb
1.12.16 git checkout 26d5775 /usr/local/Library/Formula/cairo.rb
1.12.14 git checkout 96680d5 /usr/local/Library/Formula/cairo.rb
1.12.12 git checkout 084226c /usr/local/Library/Formula/cairo.rb
1.12.10 git checkout bc14222 /usr/local/Library/Formula/cairo.rb
1.12.8 git checkout c16eff9 /usr/local/Library/Formula/cairo.rb
cd /usr/local/Library/
git checkout 7073788 /usr/local/Library/Formula/cairo.rb
brew install cairo