1

我正在尝试安装 rpm,但由于未解决的依赖关系而失败。文件 libc.so.6 是 $PATH 的路径,所以不知道它在抱怨什么。

# yum install libdb-5.3.21-3.fc18.x86_64.rpm                      Loaded plugins: rhnplugin, security
This system is not registered with ULN.
ULN support will be disabled.
Setting up Install Process
Examining libdb-5.3.21-3.fc18.x86_64.rpm: libdb-5.3.21-3.fc18.x86_64
Marking libdb-5.3.21-3.fc18.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package libdb.x86_64 0:5.3.21-3.fc18 set to be updated
--> Processing Dependency: libc.so.6(GLIBC_2.14)(64bit) for package: libdb

--> Processing Dependency: libc.so.6(GLIBC_2.15)(64bit) for package: libdb
--> Processing Conflict: libdb conflicts filesystem < 3
--> Finished Dependency Resolution
libdb-5.3.21-3.fc18.x86_64 from /libdb-5.3.21-3.fc18.x86_64 has depsolving problems
  --> libdb conflicts with filesystem
libdb-5.3.21-3.fc18.x86_64 from /libdb-5.3.21-3.fc18.x86_64 has depsolving problems
  --> Missing Dependency: libc.so.6(GLIBC_2.14)(64bit) is needed by package libdb-5.3.21-3.fc18.x86_64 (/libdb-5.3.21-3.fc18.x86_64)
libdb-5.3.21-3.fc18.x86_64 from /libdb-5.3.21-3.fc18.x86_64 has depsolving problems
  --> Missing Dependency: libc.so.6(GLIBC_2.15)(64bit) is needed by package libdb-5.3.21-3.fc18.x86_64 (/libdb-5.3.21-3.fc18.x86_64)
Error: libdb conflicts with filesystem
Error: Missing Dependency: libc.so.6(GLIBC_2.14)(64bit) is needed by package libdb-

5.3.21-3.fc18.x86_64 (/libdb-5.3.21-3.fc18.x86_64)
Error: Missing Dependency: libc.so.6(GLIBC_2.15)(64bit) is needed by package libdb-5.3.21-3.fc18.x86_64 (/libdb-5.3.21-3.fc18.x86_64)
 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
The program package-cleanup is found in the yum-utils package.


[root@db1 php]# locate libc.so.6
/lib/libc.so.6
/lib/i686/nosegneg/libc.so.6
/lib64/libc.so.6
/u01/oracle/112/lib/stubs/libc.so.6

 echo $PATH
/lib64:/usr/lib64/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:    /usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/lib64/:/usr/lib:/u01/oracle/112/lib:/usr/lib/:/usr/lib64/:/usr/local/apr/lib:/usr/lib/:/usr/lib:/usr/lib64:/usr/local/apr/lib:/usr/local/src:/usr/lib
4

2 回答 2

1

您正在安装此 Fedora RPM 的 CentOS 系统吗?在大多数情况下,Fedora RPM 是针对比 CentOS 更新版本的中间件和库构建的。

在我的 CentOS 6 机器上:

$ rpm -qp --conflicts /tmp/libdb-5.3.21-3.fc18.x86_64.rpm
filesystem < 3

$ rpm -qa | grep filesystem
filesystem-2.4.30-3.el6.x86_64

filesystem我找到了规范文件,并且在低于 3.0 的版本上存在明显的包冲突。

此外,该 RPM 对 GLIBC 的要求高于您可能正在运行的要求。

$ rpm -qa | grep glibc
glibc-2.12-1.80.el6_3.6.x86_64
于 2013-09-10T14:47:35.667 回答
0

yum 使用的 RPM 不查看文件系统。它查看 rpmdb。相同的 rpmdb 不包含该依赖项。

于 2013-09-04T03:32:04.137 回答