Good night, dear sir :) You have been alot of help to me. i greatly appreciate it.
Hmmm allright. So if i knew how to switch back to default mod_wsgi.so i could go back and forth between ucs2 and ucs4 pythons? right? Then everything would be sort of fixed i guess. Or i could use ucs2 python everywhere, right? Why i needed ucs2 python is simple - i wanted to test one 3rd party module - http://www.pdftron.com/pdfnet/downloads.html. Unfortunately it is compiled with ucs2 and it did not work with my ucs4 python. I let them know about it and asked if they could provide ucs4 version of their package to me - after lengthy discussion, spanning few weeks i finally got response from them that their guys are all very busy and if i were to buy the licence then they would compile me ucs4 version of their software for me. I would gladly pay those guys for the work they have done, but i just wanted to test their software and see if it works for the project i had in mind. So all that ucs2 python requirement came from there. With your help, Graham, i got this ucs2 python working well enough in my computer that i can crate prototype site with this pdftron software. If all goes well we can pay for the licence and get ucs4 version of the software too... Luckyly my hosting company has ucs2 python installed so hopefully there will be no problems when trying to host the prototype. Alan On Sunday, July 8, 2012 5:41:22 PM UTC+3, Alan Kesselmann wrote: > > Hello. > > My long search ( > https://groups.google.com/forum/?fromgroups#!topic/comp.lang.python/bGuAfqa76W8 > , > http://stackoverflow.com/questions/11382024/python-version-virtualenvwrapper-and-django) > has > brought me here. Long story short - it seems i need to install mod_wsgi for > my 2nd python installation which is 2.7.3 ucs 2. > > What i did was: > alan@alan:~/python/modwsgi$ wget > http://modwsgi.googlecode.com/files/mod_wsgi-3.3.tar.gz > --2012-07-08 17:33:27-- > http://modwsgi.googlecode.com/files/mod_wsgi-3.3.tar.gz > Resolving modwsgi.googlecode.com... 173.194.67.82, 2a00:1450:4001:c01::52 > Connecting to modwsgi.googlecode.com|173.194.67.82|:80... connected. > HTTP request sent, awaiting response... 200 OK > Length: 117930 (115K) [application/x-gzip] > Saving to: `mod_wsgi-3.3.tar.gz' > > 100%[==============================================================================>] > > 117,930 319K/s in 0.4s > > 2012-07-08 17:33:28 (319 KB/s) - `mod_wsgi-3.3.tar.gz' saved > [117930/117930] > > alan@alan:~/python/modwsgi$ tar xvfz mod_wsgi-3.3.tar.gz > mod_wsgi-3.3/ > mod_wsgi-3.3/configure > mod_wsgi-3.3/configure.ac > mod_wsgi-3.3/LICENCE > mod_wsgi-3.3/mod_wsgi.c > mod_wsgi-3.3/posix-ap1X.mk.in > mod_wsgi-3.3/posix-ap2X.mk.in > mod_wsgi-3.3/README > mod_wsgi-3.3/win32-ap22py26.mk > mod_wsgi-3.3/win32-ap22py31.mk > alan@alan:~/python/modwsgi$ cd mod_wsgi-3.3/ > alan@alan:~/python/modwsgi/mod_wsgi-3.3$ ./configure > --with-python=/opt/bin/python > checking for apxs2... /usr/bin/apxs2 > checking Apache version... 2.2.20 > configure: creating ./config.status > config.status: creating Makefile > > And what i got was: > alan@alan:~/python/modwsgi/mod_wsgi-3.3$ make > /usr/bin/apxs2 -c -I/opt/include/python2.7 -DNDEBUG mod_wsgi.c > -L/opt/lib -L/opt/lib/python2.7/config -lpython2.7 -lpthread -ldl -lutil > -lm > /usr/share/apr-1.0/build/libtool --silent --mode=compile > --tag=disable-static x86_64-linux-gnu-gcc -prefer-pic -DLINUX=2 > -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_REENTRANT -I/usr/include/apr-1.0 > -I/usr/include/openssl -I/usr/include/xmltok -pthread > -I/usr/include/apache2 -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 > -I/opt/include/python2.7 -DNDEBUG -c -o mod_wsgi.lo mod_wsgi.c && touch > mod_wsgi.slo > In file included from /opt/include/python2.7/Python.h:8:0, > from mod_wsgi.c:135: > /opt/include/python2.7/pyconfig.h:1161:0: warning: "_POSIX_C_SOURCE" > redefined [enabled by default] > /usr/include/features.h:163:0: note: this is the location of the previous > definition > /opt/include/python2.7/pyconfig.h:1183:0: warning: "_XOPEN_SOURCE" > redefined [enabled by default] > /usr/include/features.h:165:0: note: this is the location of the previous > definition > /usr/share/apr-1.0/build/libtool --silent --mode=link --tag=disable-static > x86_64-linux-gnu-gcc -o mod_wsgi.la -rpath /usr/lib/apache2/modules > -module -avoid-version mod_wsgi.lo -L/opt/lib > -L/opt/lib/python2.7/config -lpython2.7 -lpthread -ldl -lutil -lm > /usr/bin/ld: /opt/lib/libpython2.7.a(abstract.o): relocation R_X86_64_32S > against `_Py_NotImplementedStruct' can not be used when making a shared > object; recompile with -fPIC > /opt/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 > > Can someone help me understand whats wrong here and tell me what do i need > to do to get this stuff up and running for once :) > > Alan > -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To view this discussion on the web visit https://groups.google.com/d/msg/modwsgi/-/iq-7ydKzecIJ. 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.
