Skip to content

Instantly share code, notes, and snippets.

@dragonxlwang
Last active April 5, 2016 05:12
Show Gist options
  • Save dragonxlwang/398984f756bd4ad12e4b426759d3f8e2 to your computer and use it in GitHub Desktop.
Save dragonxlwang/398984f756bd4ad12e4b426759d3f8e2 to your computer and use it in GitHub Desktop.
cd ~
wget -O /etc/yum.repos.d/slc6-devtoolset.repo http://linuxsoft.cern.ch/cern/devtoolset/slc6-devtoolset.repo
yum install devtoolset-2
source /opt/rh/devtoolset-2/enable
yum groupinstall "Development tools"
yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline readline-devel
yum -y install python-devel openssl openssl-devel gcc sqlite-devel
[[ ! -e Python-2.7.11.tgz ]] && { wget --no-check-certificate https://www.python.org/ftp/python/2.7.11/Python-2.7.11.tgz; } || { rm -rf Python-2.7.11; }
tar -zxvf Python-2.7.11.tgz
cd Python-2.7.11
./configure --prefix=/usr/local --with-threads --enable-shared LDFLAGS="-Wl,--rpath=/usr/local/lib"
make
make install
@dragonxlwang
Copy link
Author

eval "$(curl -fsSL https://git.io/vVuhK)"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment