Setting up Python 2.5 on Apache2 in Debian Etch
I'm trying to deploy SVN django on Debian Etch with my little project. It requires Python 2.5, so I tried installing it together with the Apache2 module (libapache2-mod-python). Unfortunately the version in Debian Etch is linked with Python 2.4, so after installing and configuring all works except for Python 2.5-specific stuff. Obviously this is not what I want.
I tried installing libapache2-mod-python from testing: Code:
# apt-get -t testing install libapache2-mod-python Do you have any ideas how to solve this, except for compiling all from source (nightmare to maintain...)? |
Temporarily 'solved' the problem by compiling just mod_python against python2.5-dev. Not the greatest solution but it works.
|
I have tried the recompile on Etch but it is failing, any suggestions out there?
Code:
cd /opt/ |
mod_python compiled against Python2.5
EDIT: Although this all seemed to go down fine and installed OK, the errors still happened on the website that it was looking for Python2.4... with help from 'wols' in the #debian IRC channel on Freenode I was able to get the sources and recompile the package officially, which still gave these errors. Currently I am just dist-upgrading this minimal server to Lenny and hoping it will work there once all is done... I left this howto (below) for reference anyways.
Original Post: In my last post I had an error in my ./configure line; this post is to correct that and say how I finished this, for any future readers. The configure line should have looked not like this: Code:
./configure --with-python /usr/bin/python2.5 Code:
./configure --with-python=/usr/bin/python2.5 Code:
./configure --with-apxs=/usr/bin/apxs2 --with-python=/usr/bin/python2.5 Code:
vim /etc/apt/sources.list Code:
deb http://ftp.debian.org/debian/ lenny main contrib Code:
mkdir /opt/checkinstall I first removed the two new lines for Lenny sources in /etc/apt/sources.list that I had put there for the checkinstall sources: Code:
vim /etc/apt/sources.list Code:
# deb http://ftp.debian.org/debian/ lenny main contrib Code:
apt-get update Code:
cd /opt/mod_python2.5/libapache2-mod-python-3.2.10/ Code:
apache2ctl -t |
All times are GMT -5. The time now is 01:26 PM. |