centos5.5 安装python2.6--171
2013-08-22 15:58
344 查看
22 yum install sqlite-devel -y
23 wget -c http://www.python.org/ftp/python/2.7/Python-2.7.tar.bz2 24 tar zxvf thrift-0.8.0.tar.gz >/dev/null
25 cd thrift-0.8.0
26 ll
27 ./configure --with-ruby=no >> /dev/null
28 ./configure --with-ruby=no
29 cd ..
30 ll
31 tar jxvf Python-2.6.6.tar.bz2
32 cd Python-2.6.6
33 ll
34 ./configure
35 make && make install
36 mv h/usr/bin/python /usr/bin/python.back
37 mv /usr/bin/python /usr/bin/python.bak
38 ln -s /usr/local/bin/python2.6 /usr/local/python
[root@localhost Python-2.6.6]# python
Python 2.6.6 (r266:84292, Nov 29 2012, 22:43:34)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-48)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> quit
Use quit() or Ctrl-D (i.e. EOF) to exit
>>>
KeyboardInterrupt
>>> exit
Use exit() or Ctrl-D (i.e. EOF) to exit
>>> exit()
[root@localhost Python-2.6.6]# vim /usr/bin/yum
#!/usr/bin/python2.4
本文出自 “yanzi” 博客,谢绝转载!
23 wget -c http://www.python.org/ftp/python/2.7/Python-2.7.tar.bz2 24 tar zxvf thrift-0.8.0.tar.gz >/dev/null
25 cd thrift-0.8.0
26 ll
27 ./configure --with-ruby=no >> /dev/null
28 ./configure --with-ruby=no
29 cd ..
30 ll
31 tar jxvf Python-2.6.6.tar.bz2
32 cd Python-2.6.6
33 ll
34 ./configure
35 make && make install
36 mv h/usr/bin/python /usr/bin/python.back
37 mv /usr/bin/python /usr/bin/python.bak
38 ln -s /usr/local/bin/python2.6 /usr/local/python
[root@localhost Python-2.6.6]# python
Python 2.6.6 (r266:84292, Nov 29 2012, 22:43:34)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-48)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> quit
Use quit() or Ctrl-D (i.e. EOF) to exit
>>>
KeyboardInterrupt
>>> exit
Use exit() or Ctrl-D (i.e. EOF) to exit
>>> exit()
[root@localhost Python-2.6.6]# vim /usr/bin/yum
#!/usr/bin/python2.4
本文出自 “yanzi” 博客,谢绝转载!
相关文章推荐
- CentOS升级Python2.6到Python2.7并安装pip
- CentOS6.8升级Python2.6到Python2.7并安装pip
- centos 6 升级python2.6 到2.7,安装pip过程
- CentOS安装python2.6
- centos6.5升级python2.6到2.7 + 安装pip
- 【CentOS】CentOS6.x 下python2.6升级到python2.7,easy_install的安装
- CentOS升级Python2.6到Python2.7并安装pip
- Centos6.8 python2.6升级至2.7,并安装setuptools和pip
- CentOS安装Python2.7与Python2.6并存的方法
- centos7 安装python2.6,与系统自带的python2.7共存
- CentOS升级Python2.6到Python2.7并安装pip
- Centos 编译安装Python 2.6
- CentOS升级Python2.6到Python2.7并安装pip
- RedHat5.5安装Python2.6
- CentOS 5.5 x64下安装升级Python3.3
- Centos 编译安装Python 2.6
- CentOS升级Python2.6到Python2.7并安装pip
- python之——CentOS 6.5安装Python setuptools2.6
- centos 6.8 下python2.6 升级python2.7,安装pip工具
- CentOS安装Python2.7与Python2.6并存的方法