On Tuesday, November 23, 2010, Anurag Chourasia <[email protected]> wrote: > Hi Graham, > The options that i provided during Python build were as follows > ./configure --disable-ipv6 --with-gcc=gcc CPPFLAGS="-I /opt/freeware/include > -I /opt/freeware/include/readline -I /opt/freeware/include/ncurses"
Add the option --enable-shared After rebuilding and reinstalling Python with that option, also reconfigure and rebuild and reinstall mod_WSGI. Graham > > > Regards,Anurag > > On Tue, Nov 23, 2010 at 2:40 PM, Graham Dumpleton > <[email protected]> wrote: > What options did you provide to the 'configure' script for Python when > you built Python from source code. That is the issue as Python needs > to provide a shared library and not a static library. > > AIX is can be a pain with shared libraries, so is important that > Python is compiled correctly. You may need to check Python > documentation for any special instructions as to what is required when > running 'configure' on AIX for Python. > > If anyone else here has built Python on AIX, maybe they can share > options they used for 'configure'. > > Graham > > On Tuesday, November 23, 2010, Guddu <[email protected]> wrote: >> Hi Graham, >> >> ldd on mod_wsgi.so does not show any Python related library. >> >> root [zibal]% unset LD_LIBRARY_PATH >> root [zibal]% ldd ./usr/local/apache2/modules/mod_wsgi.so >> ./usr/local/apache2/modules/mod_wsgi.so needs: >> /usr/lib/libdl.a(shr.o) >> /usr/lib/libc.a(shr.o) >> /opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.4/ >> libgcc_s.a(shr.o) >> /unix >> /usr/lib/libcrypt.a(shr.o) >> >> Does that mean that I need to build mod_wsgi again? >> >> I checked using the test application at >> http://code.google.com/p/modwsgi/wiki/CheckingYourInstallation >> and the Python Installation in use seems to be correct. >> >> Regards, >> Anurag >> >> On Nov 23, 1:24 pm, Graham Dumpleton <[email protected]> >> wrote: >>> Validate where Python library coming from using ldd. Seee section >>> about Python shared library in: >>> >>> http://code.google.com/p/modwsgi/wiki/CheckingYourInstallation >>> >>> What options did you use to 'configure' for your Python installation? >>> Did you use the --enable-shared option? >>> >>> Graham >>> >>> >>> >>> >>> >>> >>> >>> On Tuesday, November 23, 2010, Guddu <[email protected]> wrote: >>> > All, >>> >>> > When accessing my Django App from Web Browser, the following messages >>> > appear in the Apache Logs >>> >>> > [Tue Nov 23 04:36:42 2010] [notice] Apache/2.2.17 (Unix) mod_wsgi/3.3 >>> > Python/2.6.6 configured -- resuming normal operations >>> > [Tue Nov 23 04:41:00 2010] [error] [client 108.10.0.191] mod_wsgi >>> > (pid=942094): Target WSGI script '/u01/home/apli/wm/app/gdd/pyserver/ >>> > apache/django.wsgi' cannot be loaded as Python module. >>> > [Tue Nov 23 04:41:00 2010] [error] [client 108.10.0.191] mod_wsgi >>> > (pid=942094): Exception occurred processing WSGI script '/u01/home/ >>> > apli/wm/app/gdd/pyserver/apache/django.wsgi'. >>> > [Tue Nov 23 04:41:00 2010] [error] [client 108.10.0.191] Traceback >>> > (most recent call last): >>> > [Tue Nov 23 04:41:00 2010] [error] [client 108.10.0.191] File "/u01/ >>> > home/apli/wm/app/gdd/pyserver/apache/django.wsgi", line 19, in >>> > <module> >>> > [Tue Nov 23 04:41:00 2010] [error] [client 108.10.0.191] import >>> > django.core.handlers.wsgi >>> > [Tue Nov 23 04:41:00 2010] [error] [client 108.10.0.191] File "/usr/ >>> > local/lib/python2.6/site-packages/django/core/handlers/wsgi.py", line >>> > 1, in <module> >>> > [Tue Nov 23 04:41:00 2010] [error] [client 108.10.0.191] from >>> > threading import Lock >>> > [Tue Nov 23 04:41:00 2010] [error] [client 108.10.0.191] File "/usr/ >>> > local/lib/python2.6/threading.py", line 13, in <module> >>> > [Tue Nov 23 04:41:00 2010] [error] [client 108.10.0.191] from >>> > functools import wraps >>> > [Tue No > > > > -- > 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.
