我遇到此错误,在网上搜索,但找不到任何东西。
请帮助,新手
错误:依赖项失败:rpm -ivh perl-5.8.8-43.el5_11.i386.rpm
[root@workstation ~]# rpm -ivh perl-5.8.8-43.el5_11.i386.rpm
error: Failed dependencies:
libc.so.6 is needed by perl-5.8.8-43.el5_11.i386
libc.so.6(GLIBC_2.0) is needed by perl-5.8.8-43.el5_11.i386
libc.so.6(GLIBC_2.1) is needed by perl-5.8.8-43.el5_11.i386
libc.so.6(GLIBC_2.1.2) is needed by perl-5.8.8-43.el5_11.i386
libc.so.6(GLIBC_2.1.3) is needed by perl-5.8.8-43.el5_11.i386
libc.so.6(GLIBC_2.2) is needed by perl-5.8.8-43.el5_11.i386
libc.so.6(GLIBC_2.2.4) is needed by perl-5.8.8-43.el5_11.i386
libc.so.6(GLIBC_2.3) is needed by perl-5.8.8-43.el5_11.i386
libc.so.6(GLIBC_2.3.2) is needed by perl-5.8.8-43.el5_11.i386
libc.so.6(GLIBC_2.3.4) is needed by perl-5.8.8-43.el5_11.i386
libc.so.6(GLIBC_2.4) is needed by perl-5.8.8-43.el5_11.i386
libcrypt.so.1 is needed by perl-5.8.8-43.el5_11.i386
libcrypt.so.1(GLIBC_2.0) is needed by perl-5.8.8-43.el5_11.i386
libdb-4.3.so is needed by perl-5.8.8-43.el5_11.i386
libdl.so.2 is needed by perl-5.8.8-43.el5_11.i386
libdl.so.2(GLIBC_2.0) is needed by perl-5.8.8-43.el5_11.i386
libdl.so.2(GLIBC_2.1) is needed by perl-5.8.8-43.el5_11.i386
libgdbm.so.2 is needed by perl-5.8.8-43.el5_11.i386
libm.so.6 is needed by perl-5.8.8-43.el5_11.i386
libm.so.6(GLIBC_2.0) is needed by perl-5.8.8-43.el5_11.i386
libnsl.so.1 is needed by perl-5.8.8-43.el5_11.i386
libpthread.so.0 is needed by perl-5.8.8-43.el5_11.i386
libpthread.so.0(GLIBC_2.0) is needed by perl-5.8.8-43.el5_11.i386
libpthread.so.0(GLIBC_2.1) is needed by perl-5.8.8-43.el5_11.i386
libpthread.so.0(GLIBC_2.2) is needed by perl-5.8.8-43.el5_11.i386
libpthread.so.0(GLIBC_2.3.2) is needed by perl-5.8.8-43.el5_11.i386
libresolv.so.2 is needed by perl-5.8.8-43.el5_11.i386
librt.so.1 is needed by perl-5.8.8-43.el5_11.i386
librt.so.1(GLIBC_2.2) is needed by perl-5.8.8-43.el5_11.i386
libutil.so.1 is needed by perl-5.8.8-43.el5_11.i386
答案 0 :(得分:5)
您没有使用yum
,而是rpm
。
运行rpm
只会安装其命令行上列出的软件包(对于Debian用户,就像dpkg -i
)。如果您运行yum
,那么它还将安装所有必需的软件包(例如apt-get install
)。所以您可能想要:
yum localinstall perl-5.8.8-43.el5_11.i386.rpm
但是,这里有一个很大的警告。您正在使用哪个Linux发行版和哪个版本?您正在尝试安装为Red Hat Enterprise Linux 5构建的RPM。这里有两个选项:
yum install perl
进行安装,而不是下载并安装特定的RPM。您说您需要此版本的Perl才能运行要使用的某些软件。但是您确定需要具体这个版本的Perl吗?那是不寻常的。通常,要求是最低版本的Perl。如果确实需要Perl 5.8.8,那么我会质疑使用依赖于如此旧版本Perl的软件的智慧。
如果毕竟,您仍然想继续进行此操作,那么请不要使用RPM覆盖系统Perl。唯一明智的方法是构建一个单独的Perl安装(也许在/opt
中)并使用该版本。另一种选择是使用perlbrew之类的东西,这样可以很容易在同一系统上安装多个版本的Perl。