我在 CentOS 5.5 上安装 Sun Web Stack 1.6 Linux。但它抱怨缺少 32 位 perl
[root@myserver sunwebstack]# ./install amp
sun-apache22-perl-2.0.4-b10.i386.rpm...
WS011 Installation of package sun-apache22-perl-2.0.4-b10.i386.rpm failed with
Preparing packages for installation...
error: Failed dependencies :
perl >= 5.8.8 is needed by sun-apache22-perl-2.0.4-b10
error: %pre(sun-apache22-perl-2.0.4-b10.i386) scriptlet failed, exit status 1
error: install: %pre scriptlet failed (2), skipping sun-apache22-perl-2.0.4-b10
我尝试安装 32 位 perl,但它抱怨与现有的 64 位 perl 冲突
Transaction Check Error:
package perl-5.8.8-32.el5_5.2.x86_64 (which is newer than perl-5.8.8-32.el5_5.1.i386) is already installed
file /usr/share/man/man1/c2ph.1.gz from install of perl-5.8.8-32.el5_5.1.i386 conflicts with file from package perl-5.8.8-32.el5_5.2.x86_64
file /usr/share/man/man1/cpan.1.gz from install of perl-5.8.8-32.el5_5.1.i386 conflicts with file from package perl-5.8.8-32.el5_5.2.x86_64
file /usr/share/man/man1/dprofpp.1.gz from install of perl-5.8.8-32.el5_5.1.i386 conflicts with file from package perl-5.8.8-32.el5_5.2.x86_64
我怎样才能(强制?)安装它。
答案1
不要。获取与已安装软件包perl.i386
完全匹配的软件包,然后安装它。perl.x86_64
答案2
我使用以下命令从 CentOS 镜像强制安装 32 位下载来解决了这个问题。
rpm -hUv --force http://mirror.centos.org/centos/5/os/i386/CentOS/perl-5.8.8-27.el5.i386.rpm