On 9 December 2010 00:11, Aner H <[email protected]> wrote: > hey all, > sorry for the late response. > I downloaded python from http://www.python.org/download/ > I've seen the error that was mentioned in the installation issues > page, regarding 32bit and 64bit libraries, but because I didn't get > the same error message I assumed this is not the problem. > regarding libtool - I was using libtool version 1.5, I've installed > version 2.4 and that didn't help as well. > > I finally managed to build and install mod_wsgi only after changing my > apache installation. I removed from my apache installation process the > use of --enable-module & --enable-shared directives for the configure > script of apache, and after doing that mod_wsgi was built fine. > any reason why using these directives in apache prevents mod_wsgi.so > to be built? was I missing something in documentation?
The --enable-shared option is actually from APR libraries bundled with Apache and would only have been used with you built Apache with --with-included-apr option. There is no --enable-module option to configure that I can find. I would speculate that the Apache installation was simply broken somehow and rebuilding and reinstalling fixed it. Graham > thanks, > Aner. > > On Dec 1, 11:39 am, Graham Dumpleton <[email protected]> > wrote: >> Go: >> >> which libtool >> >> Where does it get it from? >> >> Is there a libtool in: >> >> /opt/apache_2.2.15/bin >> >> If there is, set: >> >> PATH=/opt/apache_2.2.15/bin:$PATH >> >> before building. >> >> If using system wide libtool, make sure it is recent version. >> >> Graham >> >> On 1 December 2010 02:27, Aner H <[email protected]> wrote: >> >> > hey all, >> > I'm having problems installing mod_wsgi. thought there is a lot of >> > info regarding this issue I can't seem to find what the problem is. >> >> > I'm installing mod_wsgi on RHEL 5, using python2.6.5 and apache >> > 2.2.15. >> > for some reason, mod_wsgi.so is not produced. the error I get, while >> > running make install, is: >> >> > Warning! dlname not found in /opt/apache_2.2.15//modules/mod_wsgi.la. >> > Assuming installing a .so rather than a libtool archive. >> > chmod 755 /opt/apache_2.2.15//modules/mod_wsgi.so >> > chmod: cannot access `/opt/apache_2.2.15//modules/mod_wsgi.so': No >> > such file or directory >> > apxs:Error: Command failed with rc=65536 >> > . >> > make: *** [install] Error 1 >> >> > here is what I do: >> > environment is configured for Python2.6.5: >> > # export PATH=/opt/python_2.6.5/bin:$PATH >> > # export LD_LIBRARY_PATH=/opt/python_2.6.5/lib:$LD_LIBRARY_PATH >> >> > # which python >> > /opt/python_2.6.5/bin/python >> >> > # python >> > Python 2.6.5 (r265:79063, Jun 6 2010, 10:35:10) >> > [GCC 4.1.2 20080704 (Red Hat 4.1.2-46)] on linux2 >> > Type "help", "copyright", "credits" or "license" for more information. >> >> > python is installed with --enable-shared flag, and a shared object has >> > been created - >> > # ls -l /opt/python_2.6.5/lib/ >> > total 5516 >> > lrwxrwxrwx 1 root root 19 Jun 6 10:36 libpython2.6.so -> >> > libpython2.6.so.1.0 >> > -r-xr-xr-x 1 root root 5615079 Jun 6 10:36 libpython2.6.so.1.0 >> > drwxr-xr-x 25 root root 20480 Nov 4 14:00 python2.6 >> >> > apache 2.2.15 is installed and running ok. >> >> > installing mod_wsgi: >> > ./configure --with-apxs=/opt/apache_2.2.15/bin/apxs --with-python=/opt/ >> > python_2.6.5/bin/python >> > make >> > make install >> >> > at that point I get the error message printed above. >> > checking .libs folder after make shows that no mod_wsgi.so was created >> > - >> > # ls -l .libs/ >> > total 548 >> > -rw-r--r-- 1 root root 551002 Nov 30 15:02 mod_wsgi.a >> > lrwxrwxrwx 1 root root 14 Nov 30 15:02 mod_wsgi.la -> ../ >> > mod_wsgi.la >> > -rw-r--r-- 1 root root 861 Nov 30 15:02 mod_wsgi.lai >> >> > I tried to update apxs according to this: >> >http://www.latko.org/2009/10/11/setting-up-django-with-mod_wsgi-on-sn... >> > , but still without success. >> >> > anyone has an idea? any suggestion would be appreciated. >> >> > thanks, >> > Aner. >> >> > -- >> > 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 >> > athttp://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. > > -- 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.
