2014-09-26 62 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