[Distutils] compiling an extension on solaris: genshi, mercurial, ... python-dev installed?

rupert.thurner rupert.thurner at gmail.com
Sat Sep 13 19:39:31 CEST 2008

On Sep 10, 8:04 pm, "rupert.thurner" <rupert.thur... at gmail.com> wrote:
> hi,
> we runhttp://www.blastwave.organd try to installhttp://genshi.edgewall.org
> which bails out with (btw, the same happens with mercurial version
> control):
> # ls -l /opt/csw/lib/libpython2.5.so
> lrwxrwxrwx   1 root     root          19 Jul 18 23:14 /opt/csw/lib/
> libpython2.5.so -> libpython2.5.so.1.0
> # easy_install --prefix /opt/csw/testing genshi
> Searching for genshi
> Best match: Genshi 0.6dev-r914
> Processing Genshi-0.6dev_r914-py2.5-solaris-2.10-sun4v.egg
> Genshi 0.6dev-r914 is already the active version in easy-install.pth
> Using /opt/csw/testing/lib/python2.5/site-packages/Genshi-0.6dev_r914-
> py2.5-solaris-2.10-sun4v.egg
> Processing dependencies for genshi
> Finished processing dependencies for genshi
> root at chvp011vs035 /
> # rm /opt/csw/testing/lib/python2.5/site-packages/Genshi-0.6dev_r914-
> py2.5-solaris-2.10-sun4v.egg
> root at chvp011vs035 /
> # easy_install --prefix /opt/csw/testing genshi
> Searching for genshi
> Readinghttp://pypi.python.org/simple/genshi/
> Couldn't find index page for 'genshi' (maybe misspelled?)
> Scanning index of all packages (this may take a while)
> Readinghttp://pypi.python.org/simple/
> Readinghttp://pypi.python.org/simple/Genshi/
> Readinghttp://genshi.edgewall.org/
> Readinghttp://genshi.edgewall.org/wiki/Download
> Best match: Genshi 0.5.1
> Downloadinghttp://ftp.edgewall.com/pub/genshi/Genshi-0.5.1.zip
> Processing Genshi-0.5.1.zip
> Running Genshi-0.5.1/setup.py -q bdist_egg --dist-dir /tmp/
> easy_install-kz7muh/Genshi-0.5.1/egg-dist-tmp--y0Vju
> warning: no previously-included files found matching 'doc/
> 2000ft.graffle'
> warning: no previously-included files matching '*' found under
> directory 'doc/logo.lineform'
> ld: fatal: library -lpython2.5: not found
> ld: fatal: File processing errors. No output written to build/
> lib.solaris-2.10-sun4v-2.5/genshi/_speedups.so
> **********************************************************************
> An optional C extension could not be compiled, speedups will not be
> available.
> **********************************************************************
> error: Setup script exited with error: can't copy 'Genshi.egg-info/
> native_libs.txt': doesn't exist or not a regular file
> anybody has an idea how to convince setuptools to use the python
> library? python works and it should be in the library path though.

phillip eby suggested that "python-dev" is not installed and this
should be the cause. blastwave does not really offer such a thing, so
i tried to check the files, and took debian solaris as example:

the header files are there, as well as the .so file /opt/csw/lib/
libpython2.5.so. but


is missing. could it be that setuptools would miss this?

More information about the Distutils-SIG mailing list