2009/3/20 vishnu.kumar <[email protected]>:
>
> Thanks for the replies guys
> but i have only one python installed and its python 2.4.3
>
> the following output is FYI
>
> [r...@218  modules]# locate wsgi
> /home/djuser/foodies/foodapp.wsgi
> /root/mod_wsgi-2.3.tar.gz
> /usr/doc/mod_wsgi
> /usr/lib/python2.4/site-packages/Django-1.0.2_final-py2.4.egg/django/
> core/handlers/wsgi.py
> /usr/lib/python2.4/site-packages/Django-1.0.2_final-py2.4.egg/django/
> core/handlers/wsgi.pyc
> /usr/lib64/httpd/modules/mod_wsgi.so
> /usr/src/redhat/RPMS/x86_64/mod_wsgi-2.3-1.x86_64.rpm
> /var/log/httpd/wsgi.19319.0.1.sock
> [r...@218 modules]# ldd mod_wsgi.so
>        libpthread.so.0 => /lib64/libpthread.so.0 (0x00002ba775468000)
>        libdl.so.2 => /lib64/libdl.so.2 (0x00002ba775682000)
>        libutil.so.1 => /lib64/libutil.so.1 (0x00002ba775886000)
>        libc.so.6 => /lib64/libc.so.6 (0x00002ba775a8a000)
>        /lib64/ld-linux-x86-64.so.2 (0x00000035bec00000)
> [r...@218 modules]# python
> Python 2.4.3 (#1, May 24 2008, 13:57:05)
> [GCC 4.1.2 20070626 (Red Hat 4.1.2-14)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import sys
>>>> sys.prefix
> '/usr'
>>>>
> [r...@218 modules]# cat /etc/issue
> CentOS release 5.2 (Final)
> Kernel \r on an \m
>
> [r...@218 modules]#

You will note however that mod_wsgi.so has no dependency on a Python
shared library, thus it has had to forcibly link the static Python
library into the mod_wsgi.so file. For some reason, with 64 bit Python
on Linux this can cause strange problems. Usually it is a link time
problem, but may also cause run time problem.

It is therefore recommended that you ensure that mod_wsgi links with
the Python shared library. Is there a libpython2.4.so in /usr/lib?

Graham

--~--~---------~--~----~------------~-------~--~----~
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