Because the python version does not match, so you need to re-install python, but through the source code compilation in make there will be a lot of dependencies problem (see the http://www.linuxdiyf.com/viewarticle.php for details? Id = 55587), failed to solve the problem after trying for a long time, accidentally found the following method, and finally installed successfully.
WgetHttp://mirrors.ircam.fr/pub/ius/stable/Redhat/5/x86_64/epel-release-5-4.noarch.rpm
WgetHttp://mirrors.ircam.fr/pub/ius/stable/Redhat/5/x86_64/ius-release-1.0-10.ius.el5.noarch.rpm
Run rpm-ivh to install the two rpm packages respectively.
After installation, directly yum list python26. If this package appears, it means it is normal.
Then yum install python26_x86_64
Rm-f/usr/bin/python
Ln-s/usr/bin/python26/usr/bin/python
After running, the default version of python is 2.6.
However, yum is based on python2.4, so a fault may occur. The solution is also simple:
1: nano/usr/bin/yum
Add python 2.4 at the end of the first line to change the first line:
#! /Usr/bin/python2.4
In this way, yum still runs in the python 2.4 Environment, And everything returns to normal.
Enter python-V to view the current python version:
1: # python-V
2: Python 2.6.8