Last active
August 29, 2015 14:04
-
-
Save kkd927/041c356b10374071daf7 to your computer and use it in GitHub Desktop.
how to install python 2.7 on CentOS 5.x
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
# 필요 패키지들 설치 | |
yum -y groupinstall 'Development Tools' | |
yum -y install openssl-devel* ncurses-devel* zlib*.x86_64 | |
yum -y install bzip2 bzip2-devel bzip2-libs | |
# 파이썬 2.7.8 버전 압축파일 다운로드 | |
wget https://www.python.org/ftp/python/2.7.8/Python-2.7.8.tgz --no-check-certificate | |
# 압출풀기 | |
tar vxzf Python-2.7.8.tgz | |
# 디렉토리 변경 | |
cd Python-2.7.8 | |
# 환경설정 | |
./configure | |
# 파이썬 모듈 컴파일 | |
make | |
# 파이썬 설치 | |
make install | |
# 파이썬 설치 확인 | |
which python | |
# 파이썬 버전 확인 | |
python -V |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment