[modwsgi] Re: mod_wsgi no module error

2010-04-14 Thread MMRUser
I installed httpd-devel using rpm and again it's gives me that earlier error.. now removed httpd-devel, as the wiki says I think ./configure looks apxs in wrong location and I can't find the apxs in my system too.The apache (httpd) installation is in /etc/httpd On Apr 14, 11:47 am, Graham

[modwsgi] Re: mod_wsgi no module error

2010-04-14 Thread MMRUser
Install http-devel again here's the error.. ./configure --with-python=/usr/local/bin/python checking for apxs2... no checking for apxs... /usr/sbin/apxs checking Apache version... apxs:Warning: /usr/bin/httpd not found or not executable apxs:Warning: Continuing anyway... apxs:Warning: No shared

Re: [modwsgi] portable installation of django using mod_wsgi

2010-04-14 Thread Graham Dumpleton
On 13 April 2010 21:12, pablo platt pablo.pl...@gmail.com wrote: Hi, I need to setup the same django project on several identical servers. Details: - os - free edition of oracle enterprise linux 5 - Apache / mod_wsgi - python - custom python2.6 installation - oracle db with cx_Oracle

Re: [modwsgi] Etch to Lenny upgrade and modwsgi

2010-04-14 Thread Graham Dumpleton
On 13 April 2010 18:28, Billy pyt...@hope.cz wrote: I am going to upgrade my Debian box from Etch to Lenny. Will the current modwsgi work as well or must I upgrade modwsgi too? A compiled mod_wsgi.so file can only be used against same Apache major/minor and Python major/minor as it was compiled

Re: [modwsgi] Re: mod_wsgi no module error

2010-04-14 Thread Graham Dumpleton
You installed the wrong Apache development version. You installed it for Apache 1.3. The version you install must match that for Apache you have installed, which appears to be 2.2.4. Graham On 14 April 2010 16:32, MMRUser oshadha.ro...@gmail.com wrote: Install http-devel again here's the

[modwsgi] Re: mod_wsgi no module error

2010-04-14 Thread MMRUser
New error make /usr/sbin/apxs -c -I/usr/local/include/python2.6 -DNDEBUG mod_wsgi.c -L/usr/local/lib -L/usr/local/lib/python2.6/config -lpython2.6 - lpthread -ldl -lutil -lm /usr/lib64/apr-1/build/libtool --silent --mode=compile gcc -prefer-pic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2

[modwsgi] Re: mod_wsgi no module error

2010-04-14 Thread MMRUser
Found the answer wiki, so I need to re-compile Python2.6 for 64 bit. can someone please tell me the syntax.. ./configure --enable-shared CXFLAGS -m64 or ./configure --enable-shared CFLAGS -m64 On Apr 14, 1:33 pm, MMRUser oshadha.ro...@gmail.com wrote: New error make /usr/sbin/apxs -c

Re: [modwsgi] Re: mod_wsgi no module error

2010-04-14 Thread Graham Dumpleton
On 14 April 2010 18:37, MMRUser oshadha.ro...@gmail.com wrote: Found the answer wiki, so I need to re-compile Python2.6 for 64 bit. can someone please tell me the syntax.. ./configure --enable-shared CXFLAGS -m64 or ./configure --enable-shared CFLAGS -m64 As far as I know you just need:

[modwsgi] Re: mod_wsgi no module error

2010-04-14 Thread MMRUser
Finally I managed to installed it but still I'm getting an error when I try to start the server..that shared library thing on line 200 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/ modules/mod_wsgi.so into server: libpython2.6.so.1.0: cannot open shared object file: No such file

[modwsgi] Re: mod_wsgi no module error

2010-04-14 Thread MMRUser
Within which file this LD_RUN_PATH=/usr/local/lib available.. ? On Apr 14, 4:19 pm, Graham Dumpleton graham.dumple...@gmail.com wrote: The directory /usr/local/lib isn't in standard search path. Easiest way to work around that is to go into mod_wsgi source code and do:   make clean  

Re: [modwsgi] Re: mod_wsgi no module error

2010-04-14 Thread Graham Dumpleton
On 14 April 2010 20:34, MMRUser oshadha.ro...@gmail.com wrote: Within which file this LD_RUN_PATH=/usr/local/lib available.. ? It is not a command, you are setting the environment variable. I just did it as part of the one command line so only applied to the invocation of make. The following is

[modwsgi] Re: mod_wsgi no module error

2010-04-14 Thread MMRUser
Phew ..! it's working :):), what I did was delete the libpython2.6.so and recompile from the scratch.. BIG THANK FOR YOUR HELP! On Apr 14, 4:19 pm, Graham Dumpleton graham.dumple...@gmail.com wrote: The directory /usr/local/lib isn't in standard search path. Easiest way to work around

Re: [modwsgi] Re: mod_wsgi no module error

2010-04-14 Thread Graham Dumpleton
On 14 April 2010 22:49, MMRUser oshadha.ro...@gmail.com wrote: Phew ..! it's working :):), what I did was delete the libpython2.6.so and recompile from the scratch.. BIG THANK FOR YOUR HELP! That wasn't what I said to do. Deleting libpython2.6.so itself wouldn't have made any difference

[modwsgi] Re: mod_wsgi no module error

2010-04-14 Thread MMRUser
Search through the net and finds out that httpd-devel has the APXS binary and other files, so If I install httpd-devel, can I compile the mod_wsgi without any errors. On Apr 13, 10:56 pm, MMRUser oshadha.ro...@gmail.com wrote: Do you know where I can get the proper apxs packages + RPMs, it's not

Re: [modwsgi] portable installation of django using mod_wsgi

2010-04-14 Thread pablo platt
Ideally the .so for cx_Oracle would be built such that LD_RUN_PATH was used to embed the library directory into the .so so that LD_LIBRARY_PATH not needed at run time. I tried as you suggested but probably got the syntax wrong. How do I use LD_LIBRARY_PATH so it'll be embedded in the .so? $

Re: [modwsgi] portable installation of django using mod_wsgi

2010-04-14 Thread Graham Dumpleton
On 15 April 2010 10:37, pablo platt pablo.pl...@gmail.com wrote: Ideally the .so for cx_Oracle would be built such that LD_RUN_PATH was used to embed the library directory into the .so so that LD_LIBRARY_PATH not needed at run time. I tried as you suggested but probably got the syntax wrong.