Error compiling Nginx with mod_wsgi

Shu Hung (Koala) koalay at gmail.com
Wed Sep 16 07:29:36 MSD 2009


Hello all,

I was trying to compile Nginx 0.6.38 with the latest mod_wsgi,
and there came and error "wsgi not found".
(the detailed logs were listed below)

Versions

   - Python 2.5
   - Nginx 0.6.38
   - mod_wsgi (downloaded from the "tip" file)
   - I was compiling it on my Fedora Core 3 machine with customized kernel.

After the error first occur, I even followed steps on wiki page
http://wiki.nginx.org/NginxNgxWSGIModule

I knew they are for Mac OS, but the symptoms were the same.
I changed the config file anyway, still the same error poped up.

Please advice me for any steps I can take.
Thanks!



[root at foobar nginx-0.6.38]# ./configure \
>  --prefix="/usr/local/nginx" \
>  --with-openssl="/usr/local/openssl" \
>  --add-module="../mod_wsgi-8994b058d2db/"
> checking for OS
>  + Linux 2.6.24.2 i686
> checking for C compiler ... found
>  + using GNU C compiler
>  + gcc version: 3.4.4 20050721 (Red Hat 3.4.4-2)
> checking for gcc -pipe switch ... found
> checking for gcc variadic macros ... found
> checking for C99 variadic macros ... found
> checking for unistd.h ... found
> checking for inttypes.h ... found
> checking for limits.h ... found
> checking for sys/filio.h ... not found
> checking for crypt.h ... found
> checking for Linux specific features
> checking for epoll ... found
> checking for sendfile() ... found
> checking for sendfile64() ... found
> checking for sys/prctl.h ... found
> checking for prctl(PR_SET_DUMPABLE) ... found
> checking for sched_setaffinity() ... found
> checking for nobody group ... found
> checking for poll() ... found
> checking for /dev/poll ... not found
> checking for kqueue ... not found
> checking for crypt() ... not found
> checking for crypt() in libcrypt ... found
> configuring additional modules
> adding module in ../mod_wsgi-8994b058d2db/
> ngx_http_wsgi_module: using Python 2.5
> checking for wsgi ... not found
> ./configure: error: the WSGI addon requires Python library.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20090916/a548abff/attachment.html>


More information about the nginx mailing list