[mod_python] Compiling mod_python

darren lee liyangmin at gmail.com
Sat Jun 7 23:36:59 EDT 2008


I have met this problem before.

does the python in the location : /usr/loca/bin/python was installed  
by yourself ?

if you install the python by yourself ,you should configure with share  
mode before compile and install .

thanks
darren lee


ÔÚ 2008-6-8£¬ÉÏÎç10:31£¬ Graham Dumpleton дµÀ£º

> Read section 'Mixing 32 Bit And 64 Bit Packages' of:
>
>  http://code.google.com/p/modwsgi/wiki/InstallationIssues
>
> Same issue applies to mod_python.
>
> In other words, fix your Python installation.
>
> Graham
>
> 2008/6/8 Jonathan Chong <ashburrn at gmail.com>:
>> Hello
>>
>> I am trying to compile mod_python on my system but have been  
>> consistently
>> receiving a make_dso error. I have Apache 2.2.8 installed and  
>> running fine,
>> compiled with the following config:
>>
>> ./configure --prefix=/httpd --enable-so --enable-rewrite --enable- 
>> deflate
>> --enable-mime-magic
>>
>> I have Python 2.5.1 installed and I'm trying to compile mod_python  
>> with the
>> following:
>>
>> ./configure --with-apxs=/httpd/bin/apxs --with-python=/usr/local/ 
>> bin/python
>> --with-flex=/usr/local/bin/flex
>>
>> The configure runs fine, but when I try to run make, I receive this  
>> error:
>>
>> ...
>> /usr/include/features.h:132:1: warning: this is the location of the  
>> previous
>> definition
>> finfoobject.c:278: warning: `intargfunc' is deprecated (declared at
>> /usr/local/include/python2.5/object.h:133)
>> finfoobject.c:278: warning: initialization from incompatible  
>> pointer type
>> /httpd/build/libtool --silent --mode=link gcc -o mod_python.la  - 
>> rpath
>> /httpd/modules -module -avoid-version    finfoobject.lo  
>> hlistobject.lo
>> hlist.lo filterobject.lo connobject.lo serverobject.lo util.lo
>> tableobject.lo requestobject.lo _apachemodule.lo mod_python.lo
>> -L/usr/local/lib/python2.5/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 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
>>
>> I have full root access on a dedicated server, running CentOS  
>> release 3.6
>> (Final).
>>
>> Any help is much appreciated, thanks.
>>
>> --
>> Jonathan Chong
>>
>> http://jonathanchong.com/
>> http://arsenal-mania.com/
>> _______________________________________________
>> Mod_python mailing list
>> Mod_python at modpython.org
>> http://mailman.modpython.org/mailman/listinfo/mod_python
>>
>>
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20080608/45b59b8c/attachment.html


More information about the Mod_python mailing list