装GA最好用Python2.7.5
需要新版本python
而 CentOS 6.4 自带的是 Python 2.6.6
查看
# python -V
Python 2.6.6
下载 2.7.5
安装
# ./configure
# make
# make install
# /usr/local/bin/python2.7 -V
Python 2.7
# make
# make install
# /usr/local/bin/python2.7 -V
Python 2.7
修改软链
# mv /usr/bin/python /usr/bin/python2.6.6
# ln -s /usr/local/bin/python2.7 /usr/bin/python
# python -V
# ln -s /usr/local/bin/python2.7 /usr/bin/python
# python -V
Python 软链接指向python2.7版本后, yum 不能正常工作
# vim /usr/bin/yum
将文件头部的
#!/usr/bin/python
改成
#!/usr/bin/python2.6.6