Josh
Josh

Reputation: 3611

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

I have 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.

Upvotes: 0

Views: 980

Answers (3)

Graham Dumpleton
Graham Dumpleton

Reputation: 58563

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.

Upvotes: 0

pib
pib

Reputation: 3323

You're running Ubuntu? How about just

sudo apt-get install libapache2-mod-wsgi

?

Upvotes: 5

Tobu
Tobu

Reputation: 25436

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

Upvotes: 1

Related Questions