.png)
Quando corro, $ yum
vejo:
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
/usr/lib64/libssh2.so.1: symbol EVP_aes_128_ctr, version libcrypto.so.10 not defined in file libcrypto.so.10 with link time reference
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.6.6 (r266:84292, Oct 12 2012, 14:23:48)
[GCC 4.4.6 20120305 (Red Hat 4.4.6-4)]
If you cannot solve this problem yourself, please go to
the yum faq at:
http://yum.baseurl.org/wiki/Faq
Atualizei o Python e agora, se eu executar, $ python --version
vejo Python 2.7.12rc1
. Mas isso não corresponde à versão atual, de acordo com o erro. Alguma ideia? Obrigado!
Responder1
Talvez a melhor maneira sem precisar reinstalar o sistema operacional seria baixar o pacote python (e possivelmente qualquer pacote de módulos python) e usá- rpm
los para instalá-los no Python atualizado.
O pacote python para RHEL 6 deve estar python-2.6.6-64.el6.x86_64
disponível na Red Hat ou você pode retirá-lo de um arquivo .iso do RHEL6. Você provavelmente terá que usar a --force
opção no RPM, pois ela substituirá o pacote e quaisquer arquivos.
Depois disso, yum
deve funcionar, embora ainda exista algum lixo da atualização do Python. Ao atualizar o Python, certifique-se de --prefix
instalá-lo em algum lugar como: /usr/local/python2.7.12
ou em qualquer lugar longe dos arquivos Python do sistema.