[mod_python] Compiling mod_python

Gabriele Farina g.farina at pharaondev.com
Tue Mar 20 03:35:14 EST 2007


today I'm trying to compile mod_python on a Debian Linux box.
I installed correctly apache 2.2.4 and Python 2.5 from sources and  
then tried to compile mod_python. I get this error:

/config -Xlinker -export-dynamic -lm -lpython2.5 -lpthread -ldl - 
lutil -lm
/usr/bin/ld: /usr/local/lib/python2.5/config/libpython2.5.a 
(abstract.o): relocation R_X86_64_32 against `a local symbol' can not  
be used when making a shared object; recompile with -fPIC
/usr/local/lib/python2.5/config/libpython2.5.a: could not read  
symbols: Bad value
collect2: ld returned 1 exit status
apxs:Error: Command failed with rc=65536
make[1]: *** [mod_python.so] Error 1
make[1]: Leaving directory `/usr/local/src/mod_python-3.3.1/src'
make: *** [do_dso] Error 2

Anyone can help me understand where is the problem ?


More information about the Mod_python mailing list