Skip to content

Instantly share code, notes, and snippets.

@jdeniau
Created March 27, 2013 15:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jdeniau/5255111 to your computer and use it in GitHub Desktop.
Save jdeniau/5255111 to your computer and use it in GitHub Desktop.
Graphite - virtualenv
# create the virtualenv and work on it
mkvirtualenv graphite
workon graphite
cd $VIRTUAL_ENV # we are now in /home/envs/graphite/ . If you are not, you may have a problem with your virtualenv
# apparently you have to make a symlink because cairo does not work with python 2.7 and pip
# my cairo module was located on /usr/lib/pymodules/python2.7/cairo Check this path, it may change on your server.
# You can execute `locate cairo` to find out.
# if this step does not work, you will not have any graphics in graphite later
ln -s /usr/lib/pymodules/python2.7/cairo ./lib/python2.7/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment