我正在尝试安装从Snort启动PulledPork所需的Crypt :: SSLeay。我正在使用Perl 5.16-3开发一个新的Red Hat Linux Enterprise 7服务器(在VM中)。 我正在从search.cpan.org安装每个Perl模块,我需要获取源代码来自己编译。
首先,我想用
安装Crypt :: SSLeayperl Makefile.PL
make
sudo make install
然后我首先安装了一堆依赖项。
但现在我对此感到困惑。
Can't locate version.pm in @INC (@INC contains: /usr/local/lib64/perl5
/usr/local/share/perl5 /usr/lib64/perl5/vendor_perl
/usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at
/usr/local/share/perl5/Module/Load/Conditional.pm line 12. BEGIN
failed--compilation aborted at
/usr/local/share/perl5/Module/Load/Conditional.pm line 12. Compilation
failed in require at /usr/local/share/perl5/IPC/Cmd.pm line 60. BEGIN
failed--compilation aborted at /usr/local/share/perl5/IPC/Cmd.pm line
60. Compilation failed in require at /usr/local/share/perl5/ExtUtils/CBuilder/Base.pm line 10. BEGIN
failed--compilation aborted at
/usr/local/share/perl5/ExtUtils/CBuilder/Base.pm line 10. Compilation
failed in require at
/usr/local/share/perl5/ExtUtils/CBuilder/Platform/Unix.pm line 5.
BEGIN failed--compilation aborted at
/usr/local/share/perl5/ExtUtils/CBuilder/Platform/Unix.pm line 5.
Compilation failed in require at (eval 1) line 2. BEGIN
failed--compilation aborted at (eval 1) line 2. Compilation failed in
require at Makefile.PL line 5. BEGIN failed--compilation aborted at
Makefile.PL line 5.
我安装了版本(http://search.cpan.org/~jpeacock/version-0.9917/lib/version.pod),但它告诉我:
ERROR from evaluation of
/home/pdavid/Downloads/version-0.9917/vutil/Makefile.PL:
ExtUtils::MM_Unix::tool_xsubpp : Can't find xsubpp at
/usr/local/share/perl5/ExtUtils/MM_Unix.pm line 3753.
答案 0 :(得分:0)
红帽企业Linux(和Fedora)在perl
包中发布了Perl的子集;这就是为什么你错过了version.pm
,尽管软件假定它在那里;这就是为什么思南提到它的原因是corelist
。
解决方案是首先在您的系统上安装perl-core
软件包,然后系统将安装所有来自核心的软件包,然后您就可以安装软件了:
sudo yum install perl-core
顺便说一下,你也可以通过yum
安装Crypt :: SSLeay:
sudo yum install "perl(Crypt::SSLeay)"