2013-10-15 129 views
-1

Yum突然開始給錯誤粘貼波紋管Centos 6.4上的Yum錯誤

我試圖重建yum,但錯誤依然存在。我重新安裝了krb5-libs,但錯誤仍然存​​在

如何在不恢復Centos的情況下修復yum?

錯誤:

There was a problem importing one of the Python modules required to run yum. The error leading to this problem was:

/lib64/libkrb5.so.3: symbol krb5int_push_fscreatecon_for, version krb5support_0_MIT not defined in file libkrb5support.so.0 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, Jul 10 2013, 22:48:45) [GCC 4.4.7 20120313 (Red Hat 4.4.7-3)]

If you cannot solve this problem yourself, please go to the yum faq at: http://yum.baseurl.org/wiki/Faq

回答

0

運行下面的命令來測試你有什麼所有的圖書館:

# ldd /lib64/libkrb5.so.3 

,並確保該模塊libkrb5support.so.0'下提供'/lib64'目錄或將軟墨水寫入/ lib64目錄中的文件。如果它不存在,那麼這個錯誤是預期的。所以手動你必須再次鏈接它。

從我的測試系統:

# locate libkrb5support.so.0 
/lib64/libkrb5support.so.0 

# ls -l /lib64/libkrb5support.so.0 
lrwxrwxrwx. 1 root root 21 Aug 19 15:52 /lib64/libkrb5support.so.0 -> libkrb5support.so.0.1 

# ls -l /lib64/libkrb5support.so.0.1 
-rwxr-xr-x. 1 root root 46336 May 1 2012 /lib64/libkrb5support.so.0.1 
2

在我的機器的問題是由在PostgreSQL 5.2/PSqlODBC分佈式第二libkrb5support.so引起的。在/etc/ld.so.conf.d/psqlODBC.conf中註釋庫路徑並運行ldconfig -v之後,我可以再次運行yum而不會出現任何問題。

在我的情況下,路徑「錯誤」庫/opt/PostgreSQL/9.2/lib/libkrb5support.so.0

埃德加。

1

我在定義LD_LIBRARY_PATH環境變量後遇到此錯誤。它通過將/ lib和/ lib64添加到LD_LIBRARY_PATH來解決。

export LD_LIBRARY_PATH=/lib:/lib64:....