Thanks Graham.

I was able to run ./configure in the dir created after running the
command as per the link given.
compiled it successfully, there were some warnings, but no errors....

and in the end it said that my mod_wsgi.so is installed in modules/ ,
it was there.

I also added

LoadModule wsgi_module modules/mod_wsgi.so

Now when I 'start' apache it is giving the following error.

# sudo /opt/apache24/bin/apachectl start
httpd: Syntax error on line 169 of /opt/apache24/conf/httpd.conf:
Cannot load /opt/apache24/modules/mod_wsgi.so into server:
/opt/apache24/modules/mod_wsgi.so: undefined symbol: _Py_RefTotal

This is what I did to install :

# ./configure --prefix=/opt/mod_wsgi34
--with-apxs=/opt/apache24/bin/apxs
--with-python=/opt/python273/bin/python
# make
# sudo make install


/opt/apache24/modules$ ldd mod_wsgi.so
        linux-vdso.so.1 =>  (0x00007ffff03ff000)
        libpython2.7.so.1.0 => /usr/lib/libpython2.7.so.1.0 (0x00007f995f9e5000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 
(0x00007f995f7c8000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f995f40a000)
        libssl.so.1.0.0 => /lib/x86_64-linux-gnu/libssl.so.1.0.0 
(0x00007f995f1ae000)
        libcrypto.so.1.0.0 => /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
(0x00007f995ede6000)
        libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f995ebce000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f995e9ca000)
        libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007f995e7c7000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f995e4cc000)
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 
(0x00007f995e2b6000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f9960127000)


Thanks

Nitin


On Tue, Jun 5, 2012 at 1:16 AM, Graham Dumpleton
<graham.dumple...@gmail.com> wrote:
> If you want to use mod_wsgi 3.3 then use Apache 2.2.
>
> If you want to use Apache 2.4, use mod_wsgi 3.4 from source code repository.
>
> http://code.google.com/p/modwsgi/wiki/ChangesInVersion0304
>
> I would recommend using Apache 2.2 and mod_wsgi 3.3 unless you are
> fully comfortable with doing Mercurial checkouts and compiling from
> source code.
>
> IOW, there is no need to port the code and there were more changes
> required than just those presented by the compilation errors.
>
> Graham
>

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To post to this group, send email to modwsgi@googlegroups.com.
To unsubscribe from this group, send email to 
modwsgi+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en.

Reply via email to