我在 RHEL6 上运行,安装了 RHEL 的 perl-5.10.1-130.el6_4。我正在尝试使用 cpan2rpm 2.028 构建一些 RPM。此外,还安装了 perl-version-0.77-130.el6_4。它给出了奇怪的失败,说安装的 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?