[cairo] Install cairo + pycairo

Steve stevech1097 at yahoo.com.au
Fri Jun 27 17:56:57 PDT 2008


On Fri, 2008-06-27 at 12:00 -0700, cairo-request at cairographics.org
wrote:
> 
> Hi all,
> 
> I've installed cairo and pycairo as follows:
> 
> # CentOS 5, 4.1.2,  glibc 2.5
> # All the packages have done with ./configure --prefix=$HOME; make;
> make
> install
> 
> 1. Python 2.5.2
> 2. cairo 1.6.4
> 3. pycairo-1.1.6
> 4.  libsvg-0.1.4
> 5. libsvg-cairo-0.1.6
> 
> But when I tried to run an example in pycairo, I got an error:
> 
> cd pycairo-1.1.6/examples
> [vuhung at aoclife examples]$ ./spiral.py
> Traceback (most recent call last):
>   File "./spiral.py", line 5, in <module>
>     import cairo
>   File "/home/vuhung/lib/python2.5/site-packages/cairo/__init__.py",
> line 1,
> in <module>
>     from _cairo import *
> ImportError: /home/vuhung/lib/python2.5/site-packages/cairo/_cairo.so:
> undefined symbol:
> cairo_svg_surface_set_dpi_REPLACED_BY_cairo_surface_set_fallback_resolution
> [7307 refs]
> 
> I am quite new to python so I think perhaps I've missed something.
> 
> -- 
> Best Regards,
> Nguyen Hung Vu ( Nguy?n V? H?ng )
> vuhung16plus{remove}@gmail.dot.com

It looks like you have chosen incompatible cairo and pycairo versions.
Try to install cairo and pycairo with the same version numbers. For
example cairo 1.4.12 and pycairo 1.4.12 (or cairo 1.6.4 and pycairo from
CVS).

Regards
Steve



More information about the cairo mailing list