Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@eferro
Created August 5, 2012 14:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eferro/3265056 to your computer and use it in GitHub Desktop.
Save eferro/3265056 to your computer and use it in GitHub Desktop.
Python 2.7.3 for old gnu/linux systems (test debian/ubuntu)
# 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