开发者

Install python for 64-bit Ubuntu - trying to install mod_wsgi

I ha开发者_运维百科ve previously had python installed because of postfix. I then installed Django. Next, I tried to install mod_wsgi for deploying a Django application. I get this error:

make: *** [mod_wsgi.la] error 1

Apparently it is due to an older version of python. I tried to install a newer version of python but I still get the same problem. This is what I have installed:

/usr/lib/python2.4/ /usr/lib/python2.5

I am trying to specify which python installation to use when running Make for mod_wsgi.

Any ideas?

Thanks.


You're running Ubuntu? How about just

sudo apt-get install libapache2-mod-wsgi

?


Try ./configure --help. There's a --with-python option or similar.


You have provided insufficient information, such as the dozen or so lines before that make error line. Those missing lines would show the real error. Possible causes may be that you don't have gcc installed or you don't have the 'dev' packages for either Python or Apache installed. The Apache/mod_wsgi package supports back to Python 2.3 so the versions you had would have been okay, albeit you may have to tell it which one to use now that you have multiple versions installed. Just make sure you read the official installation instructions on the mod_wsgi web site as it explains what all the dependencies are and how to build it.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜