gpt4 book ai didi

centos - 如何查找与特定库版本对应的包

转载 作者:行者123 更新时间:2023-12-04 19:33:05 25 4
gpt4 key购买 nike

我有一台安装了 CentOS 6.5 的服务器。

现在我必须安装一些 rpms(IBM 的 Tivoli Backup Client),但这不起作用,
由于失败的依赖关系:

[root@server1 tivoli-install]# rpm -ihv TIVsm-APIcit.x86_64.rpm
error: Failed dependencies:
libc.so.6 is needed by TIVsm-APIcit-6.4.1-3.x86_64
libc.so.6(GLIBC_2.0) is needed by TIVsm-APIcit-6.4.1-3.x86_64
libc.so.6(GLIBC_2.1) is needed by TIVsm-APIcit-6.4.1-3.x86_64
libc.so.6(GLIBC_2.1.3) is needed by TIVsm-APIcit-6.4.1-3.x86_64
libc.so.6(GLIBC_2.2) is needed by TIVsm-APIcit-6.4.1-3.x86_64
libc.so.6(GLIBC_2.3) is needed by TIVsm-APIcit-6.4.1-3.x86_64
libc.so.6(GLIBC_2.3.2) is needed by TIVsm-APIcit-6.4.1-3.x86_64
libdl.so.2 is needed by TIVsm-APIcit-6.4.1-3.x86_64
libdl.so.2(GLIBC_2.0) is needed by TIVsm-APIcit-6.4.1-3.x86_64
libdl.so.2(GLIBC_2.1) is needed by TIVsm-APIcit-6.4.1-3.x86_64
libgcc_s.so.1 is needed by TIVsm-APIcit-6.4.1-3.x86_64
libgcc_s.so.1(GCC_3.0) is needed by TIVsm-APIcit-6.4.1-3.x86_64
libgcc_s.so.1(GLIBC_2.0) is needed by TIVsm-APIcit-6.4.1-3.x86_64
libm.so.6 is needed by TIVsm-APIcit-6.4.1-3.x86_64
libnsl.so.1 is needed by TIVsm-APIcit-6.4.1-3.x86_64
libpthread.so.0 is needed by TIVsm-APIcit-6.4.1-3.x86_64
libpthread.so.0(GLIBC_2.0) is needed by TIVsm-APIcit-6.4.1-3.x86_64
libpthread.so.0(GLIBC_2.1) is needed by TIVsm-APIcit-6.4.1-3.x86_64
libpthread.so.0(GLIBC_2.2) is needed by TIVsm-APIcit-6.4.1-3.x86_64
libpthread.so.0(GLIBC_2.3.2) is needed by TIVsm-APIcit-6.4.1-3.x86_64
libstdc++.so.5 is needed by TIVsm-APIcit-6.4.1-3.x86_64
libstdc++.so.5(CXXABI_1.2) is needed by TIVsm-APIcit-6.4.1-3.x86_64
libstdc++.so.5(GLIBCPP_3.2) is needed by TIVsm-APIcit-6.4.1-3.x86_64
libstdc++.so.5(GLIBCPP_3.2.2) is needed by TIVsm-APIcit-6.4.1-3.x86_64

据我所知,我拥有所有“缺失”的库,但版本错误。
我的共享库都有 2.12 版本:
[root@server1 tivoli-install]# ls -l `locate libc.so`
lrwxrwxrwx. 1 root root 12 Jan 9 13:13 /lib64/libc.so.6 -> libc-2.12.so
-rw-r--r--. 1 root root 253 Nov 21 22:21 /usr/lib64/libc.so

[root@server1 tivoli-install]# ls -l `locate libdl.so`
lrwxrwxrwx. 1 root root 13 Jan 9 13:13 /lib64/libdl.so.2 -> libdl-2.12.so
lrwxrwxrwx. 1 root root 22 Jan 9 13:14 /usr/lib64/libdl.so -> ../../lib64/libdl.so.2

[root@server1 tivoli-install]# ls -l `locate libm.so`
lrwxrwxrwx. 1 root root 12 Jan 9 13:13 /lib64/libm.so.6 -> libm-2.12.so
lrwxrwxrwx. 1 root root 21 Jan 9 13:14 /usr/lib64/libm.so -> ../../lib64/libm.so.6

[root@server1 tivoli-install]# ls -l `locate libnsl.so`
lrwxrwxrwx. 1 root root 14 Jan 9 13:13 /lib64/libnsl.so.1 -> libnsl-2.12.so
lrwxrwxrwx. 1 root root 23 Jan 9 13:14 /usr/lib64/libnsl.so -> ../../lib64/libnsl.so.1

[root@server1 tivoli-install]# ls -l `locate libpthread`
-rwxr-xr-x. 1 root root 145896 Nov 21 22:38 /lib64/libpthread-2.12.so
lrwxrwxrwx. 1 root root 18 Jan 9 13:13 /lib64/libpthread.so.0 -> libpthread-2.12.so
-rw-r--r--. 1 root root 222 Nov 21 22:21 /usr/lib64/libpthread.so

其他人也出现在错误的版本中:
[root@server1 tivoli-install]# ls -l `locate libstdc++`
lrwxrwxrwx. 1 root root 19 Jan 9 13:13 /usr/lib64/libstdc++.so.6 -> libstdc++.so.6.0.13
-rwxr-xr-x 1 root root 989840 Nov 21 19:08 /usr/lib64/libstdc++.so.6.0.13
-rw-r--r-- 1 root root 2810858 Nov 21 19:08 /usr/lib/gcc/x86_64-redhat-linux/4.4.4/libstdc++.a
lrwxrwxrwx 1 root root 37 Jan 14 13:10 /usr/lib/gcc/x86_64-redhat-linux/4.4.4/libstdc++.so -> ../../../../lib64/libstdc++.so.6.0.13

[root@server1 tivoli-install]# ls -l `locate libgcc_s.so`
lrwxrwxrwx. 1 root root 28 Jan 9 13:12 /lib64/libgcc_s.so.1 -> libgcc_s-4.4.7-20120601.so.1
lrwxrwxrwx 1 root root 20 Jan 14 12:49 /usr/lib/gcc/x86_64-redhat-linux/4.4.4/libgcc_s.so -> /lib64/libgcc_s.so.1

有人可以告诉我如何找到需要安装的软件包来修复失败的依赖项吗?

谢谢你

最佳答案

安装 Tivoli Storage Manager 备份-归档时
64 位 RHEL 6 系统上的客户端和 API,您可能会遇到
如下错误:
错误:失败的依赖项:
TIVsm-API 需要 libstdc++.so.6 ...
在 Red Hat Enterprise Linux 5 中,如果一个软件包对两者都可用
主要和兼容性架构,这两种架构
该软件包是默认安装的。
在 Red Hat Enterprise Linux 6 中,只有主要的软件包
默认安装架构。
避免在备份-归档客户端和 API 安装过程中出现问题
在 64 位机器上,一定要安装 libstdc++ 和 compat-libstdc++
32 位的软件包也是如此。
root# yum list "compat-libstdc*"
记下列出的数据包并安装。
root# yum install "compat-libstdc++-33.i686""compat-libstdc++-33.x86_64"
祝你好运 !

马可·卢塞纳
累西腓 - 伯南布哥 - 巴西

关于centos - 如何查找与特定库版本对应的包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21143855/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com