graphite-dev team mailing list archive
-
graphite-dev team
-
Mailing list archive
-
Message #02363
Re: [Question #192225]: graphite can't import cairo on OSX?
Question #192225 on Graphite changed:
https://answers.launchpad.net/graphite/+question/192225
Status: Open => Answered
mehdi badreddine proposed the following answer:
Hi,
On Mac OSX, you have another way to make graphite use libcairo.
- I've installed macport (macports.org)
- Then installed the following packages :
sudo port install python27
sudo port install cairo
- the following packages are needed as dependency :
Django-1.3.1.tar.gz
django-tagging-0.3.1.tar.gz
pycairo-1.8.4.tar.gz
tagging-0.2.1.zip
You have to untar/unzip and then launch : (sudo) python setup.py install
- Finally, you can create a startup script for the whole package (django
web ui, carbon-cache, and why not activemq)
first of all to render successfully with graphite , you have to modify the script :
/opt/graphite/bin/run-graphite-devel-server.py
and point the shebang line on the freshly installed python #!/opt/local/bin/python2.7
DYLD_LIBRARY_PATH=/opt/local/lib; ./bin/run-graphite-devel-server.py
/opt/graphite
Here is the script I use to launch the whole graphite platform :
#!/bin/bash
echo "Starting activemq server"
/usr/local/apache-activemq-5.5.1/bin/macosx/activemq start
echo "Starting Carbon Cache"
sudo bin/carbon-cache.py start
echo "Starting graphite development server"
DYLD_LIBRARY_PATH=/opt/local/lib; ./bin/run-graphite-devel-server.py /opt/graphite
Hope it helps.
Regards,
Mehdi BADREDDINE
--
You received this question notification because you are a member of
graphite-dev, which is an answer contact for Graphite.