← Back to team overview

graphite-dev team mailing list archive

Re: [Question #193989]: Unable to install graphite due to pycairo dependecy and compatibility with Python 2.7.3

 

Question #193989 on Graphite changed:
https://answers.launchpad.net/graphite/+question/193989

Mike proposed the following answer:
skeller-ea 's comment was really helpful.

I downloaded and tried installing pycairo-1.2.0.tar.gz . By me, though,
CentOS was putting the  libraries in /usr/local , and Python wasn't
finding it there:

Python 2.6.8 (unknown, Apr 12 2012, 20:59:36) 
[GCC 4.1.2 20080704 (Red Hat 4.1.2-52)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pycairo
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named pycairo

Instead of changing the system-wide configuration (and possibly breaking
things), I changed the prefix in the build:

PYTHON=/usr/bin/python2.6 ./configure  --prefix /usr

then make && make install

and now python2.6 finds cairo:

Python 2.6.8 (unknown, Apr 12 2012, 20:59:36) 
[GCC 4.1.2 20080704 (Red Hat 4.1.2-52)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import cairo
>>>

-- 
You received this question notification because you are a member of
graphite-dev, which is an answer contact for Graphite.