2014-09-26 19 views
0

我想用cpan2dist安装一些perl模块。 Cpan2dist创建perl-modules的rpm。我想安装数据自卸车:使用cpan2dist安装模块blaims关于丢失模块虽然可用

cpan2dist --format CPANPLUS::Dist::SUSE --verbose --buildprereq Data-Dumper . 
Data-Dumper needs Test::More, which is installed: 
cpan2dist ... 
... 
[MSG] 'perl-Test-Simple' is already installed (for Test::More) 
... 

Perl itself confirms it: 
vm58820-6:~ # perl -MTest::More -e 'print "$Test::More::VERSION\n"' 
1.001003 

但后来cpan2dist抱怨不满意的依赖:

error: Failed build dependencies: 
     perl(Test::More) >= 0.98 is needed by perl-Data-Dumper-2.151-0.x86_64 
[ERROR] unsatisfied builddeps! 

Cpan2dist似乎并不肯定,如果测试::更多的是安装或不。但如果它说Test :: More没有安装,为什么不安装依赖关系?选项--buildprereq应该这样做。

感谢, 贝恩德

回答

0

解决

嗨, 我发现了这件事由我自己。看来,cpan2dist使用不同的方式查找已安装的软件包:我已经安装了(对于Test :: More)的消息“perl-Test-Simple”来自cpan中的cpan -l或autobundle,我相信。但是cpan2dist在检查依赖关系时也会询问rpm数据库。 “Test :: More”已经与CPAN一起安装,或者包含在原始的perl-Installation中。所以这个模块可以用于perl,但是,因为它没有与rpm一起安装,所以rpm对此一无所知。

Bernd