shangma / modwsgi

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

How can I use WSGI 3.4 with Python 3.3.1? #299

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I installed Python 3.3.1 and Apache 2.4.4 from source in Ubuntu 12.10.

When I built WSGI source code, it told me that:

/usr/bin/ld: cannot find -lpython3.3
collect2: error: ld returned 1 exit status
apxs:Error: Command failed with rc=65536
.
make: *** [mod_wsgi.la] Error 1

I don't know how to deal with it.
Thanks for help!

Original issue reported on code.google.com by tianzhuo...@gmail.com on 13 Apr 2013 at 9:04

GoogleCodeExporter commented 9 years ago
For now the easiest thing to do is to edit the Makefile generated by the 
configure scripts and change '-lpython3.3' to '-lpython3.3m'.

Otherwise you would need to use mod_wsgi source code from the repository. In 
other words, it is already fixed for the next version. I was an oversight that 
the fix didn't get into 3.4. I screwed up when back porting the change from 4.0 
to 3.4.

Original comment by Graham.Dumpleton@gmail.com on 13 Apr 2013 at 10:24

GoogleCodeExporter commented 9 years ago
It gives a new error while changing it:

/usr/bin/ld: /usr/local/lib/libpython3.3m.a(abstract.o): relocation 
R_X86_64_32S against `_PyObject_NextNotImplemented' can not be used when making 
a shared object; recompile with -fPIC
/usr/local/lib/libpython3.3m.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
apxs:Error: Command failed with rc=65536
.
make: ** [mod_wsgi.la] Erro 1

any tips?
Thanks for helping

Original comment by rickinbsb on 12 Jul 2013 at 8:03

GoogleCodeExporter commented 9 years ago
Your Python was not built with --enable-shared when configure for Python was 
run. See:

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

Original comment by Graham.Dumpleton@gmail.com on 12 Jul 2013 at 8:05

GoogleCodeExporter commented 9 years ago
oh man, I tested it locally and it worked flawlessly. Will try to install on 
the develop server, many thanks

Original comment by rickinbsb on 15 Jul 2013 at 11:49

GoogleCodeExporter commented 9 years ago
Thanks!

Original comment by t.h...@worldware.com on 5 Aug 2013 at 12:36

GoogleCodeExporter commented 9 years ago
Closing as was fixed in a subsequent mod_wsgi release.

Original comment by Graham.Dumpleton@gmail.com on 16 Sep 2014 at 6:56