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 [...]