开发者

Having trouble installing mod_WSGI - can't find input file

I'm trying 开发者_高级运维to set up mod_wsgi for use with Django. I have apache2, apache2-dev, python2.6, python2.6-dev all installed, but I'm getting this error when running configure:

checking for apxs2... /usr/bin/apxs2
checking Apache version... 2.2.14
checking for python... /usr/bin/python
configure: creating ./config.status
config.status: error: cannot find input file: Makefile.in

Thanks for the help!


I had the exact same problem. Installing the apache2-dev package solved it.

sudo apt-get install apache2-dev

I don't think the asker needs this answer anymore, so I answered for future readers with similar problems


Install apache2-threaded-dev:

$ sudo apt-get install apache2-threaded-dev


I started writing that you may need to ensure that you have axps installed (you can do this by installing the apache2-dev package). but I notice that configure already found axps. I had a similar problem but configure was bailing on not finding this dependency. Maybe some similar dependency or write permissions.


You are running the mod_WSGI 'configure' script in the mod_WSGI source code directory aren't you? Ie., in the same directory as the Makefile.in file that comes with the source tar ball.


mod_wsgi's configure script uses apxs to find the path to httpd:

apxs -q SBINDIR

apxs -q TARGET

Combine those with a "/" and add "-v", e.g.,

/blah/bin/httpd -v

That should run without an error. If it does not then mod_wsgi's configure script can't figure out the httpd version and you will get a broken symbolic link for Makefile.in.

For me, libpcre.so.0 wasn't in the LD_LIBRARY_PATH. Doing this:

export LD_LIBRARY_PATH=/usr/local/lib

then reconfiguring mod_wsgi and building fixed the problem.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜