Last active
November 29, 2016 22:24
-
-
Save ziplokk1/f9f6c330c817cacb8fef952789bc6c59 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
# install instructions taken from https://renoirboulanger.com/blog/2015/04/upgrade-python-2-7-9-ubuntu-14-04-lts-making-deb-package/ | |
# update apt | |
sudo apt-get update | |
# install build dependencies | |
sudo apt-get install -y gcc-multilib g++-multilib libffi-dev libffi6 libffi6-dbg python-crypto python-mox3 python-pil python-ply libssl-dev zlib1g-dev libbz2-dev libexpat1-dev libbluetooth-dev libgdbm-dev dpkg-dev quilt autotools-dev libreadline-dev libtinfo-dev libncursesw5-dev tk-dev blt-dev libssl-dev zlib1g-dev libbz2-dev libexpat1-dev libbluetooth-dev libsqlite3-dev libgpm2 mime-support netbase net-tools bzip2 python-dev | |
# get python sources and compile | |
wget https://www.python.org/ftp/python/2.7.9/Python-2.7.9.tgz | |
tar xfz Python-2.7.9.tgz | |
cd Python-2.7.9/ | |
./configure --prefix /usr/local/lib/python2.7.9 --enable-ipv6 | |
make | |
sudo make install | |
# cleanup | |
sudo rm -rf Python-2.7.9 | |
sudo rm -f Python-2.7.9.tgz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment