ramkrishanbhatt / modwsgi

Automatically exported from code.google.com/p/modwsgi
0 stars 0 forks source link

Mod_WSGI with X86_64 CentOS #211

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi!

I try to compile
mod_wsgi 2.3 on a Linux system using an X86 64 bit processor, but I have 
problem:

——————————–

/bin/sh /usr/lib64/apr/build/libtool –silent –mode=link gcc -o \
mod_wsgi.la -I/usr/local/include/python2.4 -DNDEBUG -rpath \
/usr/lib64/httpd/modules -module -avoid-version mod_wsgi.lo \
-L/usr/local/lib/python2.4/config -lpython2.4 -lpthread -ldl -lutil
/usr/bin/ld: /usr/local/lib/python2.4/config/
libpython2.4.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.4/config/libpython2.4.a: could not read
symbols: Bad value
collect2: ld returned 1 exit status
apxs:Error: Command failed with rc=65536
.
make: *** [mod_wsgi.la] Error 1

——————————–

Google give a solution: http://code.google.com/p/modwsgi/wiki/InstallationIssues
but it isn’t obvious.

How do I recompile Pyhton2.6 to 64bit system?

Please help.

Thanks in advance!
Chris

Original issue reported on code.google.com by knov...@gmail.com on 19 Oct 2010 at 3:54

GoogleCodeExporter commented 8 years ago
Please repost question to mod_wsgi mailing list as better dealt with there than 
on issue tracker as there are various people there who are familiar with 
building on 64 bit Linux systems who can help. I would have thought it would 
have just been necessary to recompile Python and it should pick up 64 bit 
compiler automatically.

BTW, you should not be trying to use mod_wsgi 2.3 as it is quite old and has 
notable bugs in it. Use mod_wsgi 3.3 at least.

Original comment by Graham.Dumpleton@gmail.com on 19 Oct 2010 at 10:42