我在安裝了RHEL的perl-5.10.1-130.el6_4的RHEL6上運行。我正在嘗試使用cpan2rpm 2.028來構建一些RPM。另外,還安裝了perl-version-0.77-130.el6_4。它給奇怪的故障,並稱Perl安裝的版本是不是新的足夠:cpan2rpm似乎沒有安裝Perl版本
$ perl -
This is perl, v5.10.1 (*) built for x86_64-linux-thread-multi
...
$ cpan2rpm --no-sign ExtUtils::MakeMaker
-- cpan2rpm - Ver: 2.028 --
Upgrade check
Fetch: HTTP
-- module: ExtUtils::MakeMaker --
Using cached URL: http://search.cpan.org//CPAN/authors/id/M/MS/MSCHWERN/ExtUtils-MakeMaker-6.64.tar.gz
Tarball found - not fetching
Metadata retrieval
Tarball extraction: [/root/rpm/SOURCES/ExtUtils-MakeMaker-6.64.tar.gz]
Unable to build module, the following dependencies have failed:
perl >= 5.006
Stopped at /usr/bin/cpan2rpm line 491.
cannot remove path when cwd is /tmp/bj8upl6poj/ExtUtils-MakeMaker-6.64 for /tmp/bj8upl6poj: at /usr/share/perl5/File/Temp.pm line 902
-- Done --
是什麼造成cpan2rpm不知道安裝的是什麼版本的Perl?