mytop install和term :: readkey

时间:2012-08-02 23:49:45

标签: perl rpm

[host]# rpm -Uvh mytop-1.6-4.el5.noarch.rpm 
error: Failed dependencies:
        perl(Term::ReadKey) >= 2.1 is needed by mytop-1.6-4.el5.noarch
[host]# ./perlmodver Term::ReadKey
Term::ReadKey: 2.30

当perl模块版本大于2.1时,为什么rpm无法安装mytop?

1 个答案:

答案 0 :(得分:1)

因为您从CPAN安装了Term :: ReadKey,并且这些文件未在RPM数据库中注册。

补救措施,安装perl-TermReadKey包:

# yum install perl-TermReadKey

让包管理器工具为您解决RPM依赖关系:http://www.centos.org/docs/5/html/yum/