Python 모듈(RHEL 6.4) 누락으로 인해 yum이 손상되었습니다.

Python 모듈(RHEL 6.4) 누락으로 인해 yum이 손상되었습니다.

내가 실행하면 $ yum다음이 표시됩니다.

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

Python을 업데이트했고 이제 실행 $ python --version하면 Python 2.7.12rc1. 하지만 오류에 따르면 이는 현재 버전과 일치하지 않습니다. 어떤 아이디어가 있나요? 감사해요!

답변1

아마도 OS를 다시 설치하지 않고도 더 나은 방법은 Python 패키지(및 가능한 모든 Python 모듈 패키지)를 다운로드하여 rpm업그레이드된 Python 위에 설치하는 것입니다.

RHEL 6용 Python 패키지는 python-2.6.6-64.el6.x86_64Red Hat에서 제공되거나 RHEL6 .iso 파일에서 가져올 수 있습니다. --force패키지와 모든 파일을 재정의해야 하므로 RPM에서 옵션을 사용해야 할 수도 있습니다 .

그 후에는 yumPython 업그레이드로 인해 일부 잔인함이 여전히 존재하지만 작동해야 합니다. Python을 업그레이드할 때 --prefix다음과 같은 곳에 설치 하거나 /usr/local/python2.7.12시스템의 Python 파일에서 떨어진 곳에 설치 해야 합니다 .

관련 정보