Perl CPAN安装 - 依赖性问题

时间:2017-06-06 21:54:43

标签: linux perl

全部,

我在为perl安装CPAN时遇到依赖问题,

>yum install perl-CPAN


---> Package perl-devel.x86_64 4:5.10.1-141.el6 will be installed
--> Processing Dependency: perl = 4:5.10.1-141.el6 for package: 4:perl-devel-5.10.1-141.el6.x86_64
--> Finished Dependency Resolution Error: Package: glibc-devel-2.12-1.166.el6.x86_64 (RHEL6_ISO)
           Requires: glibc = 2.12-1.166.el6
           Installed: glibc-2.12-1.166.el6_7.3.i686 (@RHEL_UPDATES_2015)
               glibc = 2.12-1.166.el6_7.3
           Available: glibc-2.12-1.166.el6.i686 (RHEL6_ISO)
               glibc = 2.12-1.166.el6 Error: Package: perl-ExtUtils-MakeMaker-6.55-141.el6.x86_64 (RHEL6_ISO)
           Requires: perl = 4:5.10.1-141.el6
           Installed: 4:perl-5.10.1-141.el6_7.1.x86_64 (@RHEL_UPDATES_2015)
               perl = 4:5.10.1-141.el6_7.1
           Available: 4:perl-5.10.1-141.el6.x86_64 (RHEL6_ISO)
               perl = 4:5.10.1-141.el6 Error: Package: glibc-headers-2.12-1.166.el6.x86_64 (RHEL6_ISO)
           Requires: glibc = 2.12-1.166.el6
           Installed: glibc-2.12-1.166.el6_7.3.i686 (@RHEL_UPDATES_2015)
               glibc = 2.12-1.166.el6_7.3
           Available: glibc-2.12-1.166.el6.i686 (RHEL6_ISO)
               glibc = 2.12-1.166.el6 Error: Package: 1:perl-Digest-SHA-5.47-141.el6.x86_64 (RHEL6_ISO)
           Requires: perl = 4:5.10.1-141.el6
           Installed: 4:perl-5.10.1-141.el6_7.1.x86_64 (@RHEL_UPDATES_2015)
               perl = 4:5.10.1-141.el6_7.1
           Available: 4:perl-5.10.1-141.el6.x86_64 (RHEL6_ISO)
               perl = 4:5.10.1-141.el6 Error: Package: 1:perl-ExtUtils-ParseXS-2.2003.0-141.el6.x86_64 (RHEL6_ISO)
           Requires: perl = 4:5.10.1-141.el6
           Installed: 4:perl-5.10.1-141.el6_7.1.x86_64 (@RHEL_UPDATES_2015)
               perl = 4:5.10.1-141.el6_7.1
           Available: 4:perl-5.10.1-141.el6.x86_64 (RHEL6_ISO)
               perl = 4:5.10.1-141.el6 Error: Package: perl-Test-Harness-3.17-141.el6.x86_64 (RHEL6_ISO)
           Requires: perl = 4:5.10.1-141.el6
           Installed: 4:perl-5.10.1-141.el6_7.1.x86_64 (@RHEL_UPDATES_2015)
               perl = 4:5.10.1-141.el6_7.1
           Available: 4:perl-5.10.1-141.el6.x86_64 (RHEL6_ISO)
               perl = 4:5.10.1-141.el6 Error: Package: 4:perl-devel-5.10.1-141.el6.x86_64 (RHEL6_ISO)
           Requires: perl = 4:5.10.1-141.el6
           Installed: 4:perl-5.10.1-141.el6_7.1.x86_64 (@RHEL_UPDATES_2015)
               perl = 4:5.10.1-141.el6_7.1
           Available: 4:perl-5.10.1-141.el6.x86_64 (RHEL6_ISO)
               perl = 4:5.10.1-141.el6 Error: Package: perl-CPAN-1.9402-141.el6.x86_64 (RHEL6_ISO)
           Requires: perl = 4:5.10.1-141.el6
           Installed: 4:perl-5.10.1-141.el6_7.1.x86_64 (@RHEL_UPDATES_2015)
               perl = 4:5.10.1-141.el6_7.1
           Available: 4:perl-5.10.1-141.el6.x86_64 (RHEL6_ISO)
               perl = 4:5.10.1-141.el6 Error: Package: db4-devel-4.7.25-19.el6_6.x86_64 (RHEL6_ISO)
           Requires: db4 = 4.7.25-19.el6_6
           Installed: db4-4.7.25-20.el6_7.i686 (@RHEL_UPDATES_2015)
               db4 = 4.7.25-20.el6_7
           Available: db4-4.7.25-19.el6_6.i686 (RHEL6_ISO)
               db4 = 4.7.25-19.el6_6  You could try using --skip-broken to work around the problem

如何解决这个问题。已安装的perl版本为5.10,Linux版本为Red Hat Enterprise Linux Server版本6.7(圣地亚哥)

1 个答案:

答案 0 :(得分:0)

检查所需的包是否为64位; i686 = 32位,x86_64 = 64位。 虽然我更喜欢安装最新的perlbrew,而不是系统perl,然后通过cpan安装必要的模块。它们可能比redhat perl更新。