Eu vi muitas outras perguntas como essa, mas nenhuma delas respondeu a parte exata que estou tendo problemas (na verdade, instalando o Python RPM). Alguém no meu sistema excluiu / usr / bin / python e /usr/bin/python2.4 na minha instalação do 64 bits do CentOS 5.8. Eu recompilei o Python 2.4 a partir do código-fonte, mas agora, sempre que tento instalar o yum, obtenho o seguinte erro:
[root@cerulean-OW1 ~]# yum install httpd
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
No module named yum
Please install a package which provides this module, or
verify that the module is installed correctly.
It's possible that the above module doesn't match the
current version of Python, which is:
2.4 (#1, Dec 16 2012, 09:16:56)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-52)]
If you cannot solve this problem yourself, please go to
the yum faq at:
http://wiki.linux.duke.edu/YumFaq
Eu verifiquei o link e ele disse o seguinte:
If you are getting a message that yum itself is the missing module then you probably installed it incorreclty (or installed the source rpm using make/make install). If possible, find a prebuilt rpm that will work for your system like one from Fedora or CentOS. Or, you can download the srpm and do a
rpmbuild --rebuild yum*.src.rpm
Eu tentei ir para link para instalar o Python, o que resultou no seguinte erro:
[root@cerulean-OW1 ~]# rpm -Uvh python-2.4.3-46.el5.x86_64.rpm
error: Failed dependencies:
python-libs-x86_64 = 2.4.3-46.el5 is needed by python-2.4.3-46.el5.x86_64
Então eu tentei instalar o python-libs-x86_64, que resultou no seguinte:
[root@cerulean-OW1 ~]# rpm -Uvh python-libs-2.4.3-46.el5_8.2.x86_64.rpm
warning: python-libs-2.4.3-46.el5_8.2.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 192a7d7d
Preparing... ########################################### [100%]
package python-libs-2.4.3-46.el5_8.2.x86_64 is already installed
file /usr/lib64/libpython2.4.so.1.0 from install of python-libs-2.4.3-46.el5_8.2.x86_64 conflicts with file from package python-libs-2.4.3-46.el5_8.2.x86_64