
我已將 RHEL 作業系統從 6.7 升級到 7.5。升級後,我在嘗試運行時發現了一些問題yum
。以下是詳細資訊。
# yum repolist
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
/lib64/libc.so.6: version `GLIBC_2.14' not found (required by /lib64/libgcc_s.so.1)
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, Aug 9 2016, 06:11:56)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]
If you cannot solve this problem yourself, please go to
the yum faq at:
http://yum.baseurl.org/wiki/Faq
出現此錯誤後,我剛剛安裝了 python2.7 和 GLIBC 2.14。但是當我嘗試從目前的 GLIBC 版本 2.12 安裝 GLIBC 2.14 時,它會拋出一些錯誤。以下是我安裝 GLIBC 2.14 的步驟:
tar xvfz glibc-2.14.tar.gz
cd glibc-2.14
mkdir build
cd build
../configure --prefix=/opt/glibc-2.14
make
sudo make install
export LD_LIBRARY_PATH=/opt/glibc-2.14/lib:$LD_LIBRARY_PATH
在第 5 步中,我收到錯誤。以下是詳細資訊:
# ../configure --prefix=/opt/glibc-2.14
checking for forced unwind support... no
configure: error: forced unwind support is required
我不知道這個錯誤「需要展開支援」。
答案1
我已將 RHEL 作業系統從 6.7 升級到 7.5。
不幸的是,不支援從 6.7 升級到 7.5。如果您在沒有先運行 ayum upgrade
和 a 的情況下運行升級工具,就會發生像這樣的非常奇怪的副作用yum update
。你有沒有看過準備系統升級指導?第一步是將您的系統升級到主要版本中的最新次要版本(在本例中6.9
)。
如果無法從備份恢復,我建議聯絡 RHEL 支援!