compiling an extension on solaris: genshi, mercurial, ...
hi, we run http://www.blastwave.org and try to install http://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@chvp011vs035 / # rm /opt/csw/testing/lib/python2.5/site-packages/Genshi-0.6dev_r914- py2.5-solaris-2.10-sun4v.egg root@chvp011vs035 / # easy_install --prefix /opt/csw/testing genshi Searching for genshi Reading http://pypi.python.org/simple/genshi/ Couldn't find index page for 'genshi' (maybe misspelled?) Scanning index of all packages (this may take a while) Reading http://pypi.python.org/simple/ Reading http://pypi.python.org/simple/Genshi/ Reading http://genshi.edgewall.org/ Reading http://genshi.edgewall.org/wiki/Download Best match: Genshi 0.5.1 Downloading http://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 ********************************************************************** WARNING: 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.
On Sep 10, 8:04 pm, "rupert.thurner" <rupert.thur...@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@chvp011vs035 / # rm /opt/csw/testing/lib/python2.5/site-packages/Genshi-0.6dev_r914- py2.5-solaris-2.10-sun4v.egg root@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 ********************************************************************** WARNING: 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: http://packages.debian.org/sid/sparc/python2.5-dev/filelist the header files are there, as well as the .so file /opt/csw/lib/ libpython2.5.so. but /opt/csw/lib/python2.5/config/Setup /opt/csw/lib/python2.5/config/Setup.config /opt/csw/lib/python2.5/config/Setup.local /opt/csw/lib/python2.5/config/config.c /opt/csw/lib/python2.5/config/config.c.in /opt/csw/lib/python2.5/config/install-sh /opt/csw/lib/python2.5/config/libpython2.5-pic.a /opt/csw/lib/python2.5/config/libpython2.5.a /opt/csw/lib/python2.5/config/libpython2.5.so /opt/csw/lib/python2.5/config/makesetup /opt/csw/lib/python2.5/config/python.o is missing. could it be that setuptools would miss this?
participants (1)
-
rupert.thurner