Created
September 8, 2018 16:18
-
-
Save chenjie/fd4eaeea39df4c8a716236a18156fb62 to your computer and use it in GitHub Desktop.
Build Python 2.7 from scretch in CentOS.
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 | |
yum -y update | |
yum groupinstall -y 'development tools' | |
yum install -y zlib-dev openssl-devel sqlite-devel bzip2-devel | |
yum install xz-libs | |
wget http://www.python.org/ftp/python/2.7.10/Python-2.7.10.tar.xz | |
xz -d Python-2.7.10.tar.xz | |
tar -xvf Python-2.7.10.tar | |
cd Python-2.7.10 | |
./configure --prefix=/usr/local | |
make | |
make altinstall | |
export PATH="/usr/local/bin:$PATH" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment