Search mod_wsgi docs for --enable-shared. You need to use this option when building your Python installation from source code so that it has a shared library which mod_wsgi can link to.
Graham On Sunday, 11 December 2011, lankesh87 <[email protected]> wrote: > Hi, > I am new to python and want to use mod_wsgi for my project but I > cannot install it. > > I am getting this error: > > "/usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/ > bin/ld: /usr/local/lib/libpython2.6.a(abstract.o): relocation > R_X86_64_32 against `.rodata.str1.8' can not be used when making a > shared object; recompile with -fPIC > /usr/local/lib/libpython2.6.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" > > when I type this > > " ./configure --with-apxs="/usr/sbin/apxs2-worker" --with-python="/usr/ > local/bin/python2.6"" > > -- > 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.
