Read:

  
http://code.google.com/p/modwsgi/wiki/InstallationIssues#Mixing_32_Bit_And_64_Bit_Packages

You likely installed Python from source code.

In doing that, you must supply  the --enable-shared option to the
'configure' script of Python when building it.

Graham

On 17 November 2010 09:20, Aleksey Tsalolikhin <[email protected]> wrote:
> Hi.  I am trying to build mod_wsgi 3.3 with python 2.7 on CentOS 5.5
> 64-bit.
>
> It dies here:
>
> /usr/lib64/apr-1/build/libtool --silent --mode=link gcc -o
> mod_wsgi.la  -rpath /usr/lib64/httpd/modules -module -avoid-version
> mod_wsgi.lo -L/opt/python-2.7/lib -L/opt/python-2.7/lib/python2.7/
> config -lpython2.7 -lpthread -ldl -lutil -lm
> /usr/bin/ld: /opt/python-2.7/lib/libpython2.7.a(node.o): relocation
> R_X86_64_32 against `a local symbol' can not be used when making a
> shared object; recompile with -fPIC
> /opt/python-2.7/lib/libpython2.7.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
>
>
> I configured the build using:
>
>   ./configure --enable-shared --prefix=/opt/mod_wsgi-3.3 --with-
> python=/opt/python-2.7/bin/python
>
> Here are the libraries used by python-2.7:
>
> $ ldd /opt/python-2.7/bin/python
>        libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003f04a00000)
>        libdl.so.2 => /lib64/libdl.so.2 (0x0000003f04600000)
>        libutil.so.1 => /lib64/libutil.so.1 (0x0000003f11c00000)
>        libm.so.6 => /lib64/libm.so.6 (0x0000003f04e00000)
>        libc.so.6 => /lib64/libc.so.6 (0x0000003f04200000)
>        /lib64/ld-linux-x86-64.so.2 (0x0000003f03e00000)
> $
>
> Any suggestions?
>
> Thanks,
> Aleksey
>
> --
> You received this message because you are subscribed to the Google Groups 
> "modwsgi" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/modwsgi?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en.

Reply via email to