pythong program install: linking cannot find -lpython2.3

Jari Aalto+usenet jari.aalto at poboxes.com
Tue Aug 19 01:25:32 EDT 2003


[Please keep CC]

Hi,

Where I can specify more linking search directories for a Python
module that makes a gcc build? Setting the LD_LIBRARY_PATH on 
command line does not seem to propagate to the linker.

Jari


root at w2kpicasso:/usr/share/site-python/xmldiff-0.6.3# echo $LD_LIBRARY_PATH 
/lib:/usr/local/lib:/usr/lib:/usr/lib/python2.3/config

root at w2kpicasso:/usr/share/site-python/xmldiff-0.6.3# python setup.py build
/usr/lib/python2.3/distutils/dist.py:213: UserWarning: 'licence' distribution option is deprecated; use 'license'
  warnings.warn(msg)
running build
running build_py
running build_ext
building 'logilab.xmldiff.maplookup' extension
gcc -shared -Wl,--enable-auto-image-base -static -Wall -Wno-format -Wstrict-prototypes -Wmissing-prototypes -DGETTEXT_STATIC build/temp.cygwin-1.3.22-i686-2.3/logilab/xmldiff/extensions/maplookup.o -L. -lpython2.3 -o build/lib.cygwin-1.3.22-i686-2.3/logilab/xmldiff/maplookup.dll
/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../i686-pc-cygwin/bin/ld: cannot find -lpython2.3
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1




More information about the Python-list mailing list