Python
百勝聲稱沒有安裝python
試圖安裝collectd,但由於某種原因它聲稱沒有安裝python:
yum install collectd Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package collectd.i386 0:4.10.0-4.el5 set to be updated --> Processing Dependency: libxml2.so.2 for package: collectd --> Processing Dependency: libcurl.so.3 for package: collectd --> Processing Dependency: libpython2.4.so.1.0 for package: collectd --> Processing Dependency: libidn.so.11 for package: collectd ---> Package collectd.x86_64 0:4.10.0-4.el5 set to be updated --> Running transaction check ---> Package collectd.i386 0:4.10.0-4.el5 set to be updated --> Processing Dependency: libpython2.4.so.1.0 for package: collectd ---> Package curl.i386 0:7.15.5-9.el5 set to be updated ---> Package libidn.i386 0:0.6.5-1.1 set to be updated ---> Package libxml2.i386 0:2.6.26-2.1.2.8 set to be updated --> Finished Dependency Resolution collectd-4.10.0-4.el5.i386 from epel has depsolving problems --> Missing Dependency: libpython2.4.so.1.0 is needed by package collectd-4.10.0-4.el5.i386 (epel) Error: Missing Dependency: libpython2.4.so.1.0 is needed by package collectd-4.10.0-4.el5.i386 (epel) You could try using --skip-broken to work around the problem You could try running: package-cleanup --problems package-cleanup --dupes rpm -Va --nofiles --nodigest [root@vitlinpup001 templates]# find / -iname "libpython2.4.so.1.0" -type f /usr/lib64/libpython2.4.so.1.0 [root@vitlinpup001 templates]# file /usr/lib64/libpython2.4.so.1.0 /usr/lib64/libpython2.4.so.1.0: ELF 64-bit LSB shared object, AMD x86-64, version 1 (SYSV), stripped [root@vitlinpup001 templates]# ls -lah /usr/lib64/libpython2.4.so.1.0 -r-xr-xr-x 1 root root 1.2M Sep 3 2009 /usr/lib64/libpython2.4.so.1.0 [root@vitlinpup001 templates]# yum info python | grep installed Repo : installed
我試圖執行
package-cleanup --problems
,package-cleanup --dupes
和rpm -Va --nofiles --nodigest
.對於我來說,這是關於缺少依賴項的第一次計時器,所以我對如何進行有點迷茫。
你誤讀了輸出。據說缺少 Python 的 32 位庫,這是正確的。嘗試安裝
collectd.x86_64
。
另一種解決方法是在 /etc/yum.conf 中添加以下行
排除=收集.i386