pythong program install: linking cannot find -lpython2.3

Jari Aalto+usenet jari.aalto at
Tue Aug 19 07:25:32 CEST 2003

[Please keep CC]


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.


root at w2kpicasso:/usr/share/site-python/xmldiff-0.6.3# echo $LD_LIBRARY_PATH 

root at w2kpicasso:/usr/share/site-python/xmldiff-0.6.3# python build
/usr/lib/python2.3/distutils/ UserWarning: 'licence' distribution option is deprecated; use 'license'
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