Created
August 5, 2012 14:15
-
-
Save eferro/3265056 to your computer and use it in GitHub Desktop.
Python 2.7.3 for old gnu/linux systems (test debian/ubuntu)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install minimal development tools | |
apt-get install build-essential | |
# Get python from official python ftp | |
cd /tmp | |
wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tar.bz2 | |
tar jxvf Python-2.7.3.tar.bz2 | |
cd Python-2.7.3/ | |
# Configure, compile and install python to /opt/py2.7 | |
./configure prefix=/opt/py2.7 --enable-shared --with-signal-module --with-threads | |
make | |
make install | |
# Configure library paths, alternatively you can use LD_LIBRAY_PATH to execute python | |
echo /opt/py2.7/lib/ >> /etc/ld.so.conf.d/python2.7.conf | |
ldconfig |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment