#1 安装相关包
yum -y install gcc gcc-c++ gd cmake patch automake make autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel curl curl-devel e2fsprogs e2fsprogs-devel krb5 krb5-devel libidn libtools-libs libidn-devel openssl openssl-devel openldap openldap-devel nss_ldap openldap-clients openldap-servers pcre-devel libmcrypt-devel
readline-devel libcap-devel
#2 python安装
cd /application/tools
wget https://www.python.org/ftp/python/2.7.8/Python-2.7.8.tgz
tar zxf Python-2.7.8.tgz
cd Python-2.7.8
mkdir /usr/local/python2
./configure --prefix=/usr/local/python2
make && make install
echo $?
mv /usr/bin/python /usr/bin/python_old
ln -s /usr/local/python2/bin/python2 /usr/bin/python
python
#3 解决下yum
vi /usr/bin/yum
#!/usr/bin/python2.6
python2.6升级到2.7
原创
©著作权归作者所有:来自51CTO博客作者cloves的原创作品,谢绝转载,否则将追究法律责任
上一篇:nat 内外模式互联
下一篇:supervisor使用
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
centos系统python版本2.6升级到2.7
centos系统python版本2.6升级到2.7
yum python pip