Installing Python 2.6/2.7 on Debian Lenny
Just a quick note to Google-eyed installers of Python who can’t get python to start after compiling it from source. Debian 5 ships with Python 2.5.x and complains about libpython after you install 2.6 or 2.7. The solution is very simple and quick:
Create the following 2 symlinks to sort yourselves out:
ln -s /usr/local/lib/libpython2.6.so.1.0 /usr/lib/
ln -s /usr/local/lib/libpython2.6.so /usr/
If you’re on a 64 bit OS replace /usr/lib/ with /usr/lib64/
My full setup script for Python including threads etc is:
# as sudo / root:wget http://python.org/ftp/python/2.6.4/Python-2.6.4.tgztar -xvzf Python-2.6.4.tgzcd Python-2.6.4./configure –with-threads –enable-sharedmakemake install# fix libpython2.6 problemln -s /usr/local/lib/libpython2.6.so.1.0 /usr/lib64/ln -s /usr/local/lib/libpython2.6.so /usr/
July 15th, 2010 at 7:40 pm
[...] Just a quick note to Google-eyed installers of Python who can’t get python to start after compiling it from source. Debian 5 ships with Python 2.5.x and complains about libpython after you install 2.6 or 2.7. More here [...]
July 16th, 2010 at 4:10 am
[...] Just a quick note to Google-eyed installers of Python who can’t get python to start after compiling it from source. Debian 5 ships with Python 2.5.x and complains about libpython after you install 2.6 or 2.7. More here [...]
February 14th, 2011 at 3:43 pm
[...] work since they are built for the Python 2.5 packages that Debian distributes. You can go here or here for instructions on how to install Python 2.6 on Debian (or just google it). Do not overwrite your [...]
June 10th, 2011 at 7:50 pm
Compiling mod_wsgi For a Custom Python Build…
Recently, I have been working on deploying a pyramid (former pylons) application on a Debian 5 (Lenny) server using mod_wsgi and Python 2.7. Since Lenny only comes with Python 2.5 and third-party Python packages are basically non-existent due to …
June 17th, 2011 at 5:31 pm
Had to install Python 2.6 on Debian Lenny due to requirements of xtreemfs (Lenny package).
Installation went smooth.
Also used checkinstall to include this install as a package, called the package ‘python2.6′
as its needed by the xtreemfs-tools.
And now all running good! thanks.
June 19th, 2011 at 10:59 pm
[...] pointed out in the DotMatrix Blog this problem can be solved by creating the following two [...]
October 11th, 2011 at 11:21 am
[...] The install itself is pretty straightforward, following similar steps to here. [...]