缺少版本。在RHEL7上安装Crypt :: SSLeay

时间:2017-04-06 14:29:39

标签: linux perl dependencies redhat

我正在尝试安装从Snort启动PulledPork所需的Crypt :: SSLeay。我正在使用Perl 5.16-3开发一个新的Red Hat Linux Enterprise 7服务器(在VM中)。 我正在从search.cpan.org安装每个Perl模块,我需要获取源代码来自己编译。

首先,我想用

安装Crypt :: SSLeay
perl Makefile.PL
make
sudo make install

然后我首先安装了一堆依赖项。

  • ExtUtils :: CBuilder
  • ExtUtils :: MakerMaker
  • 的Perl :: OSTYPE
  • IPC :: Cmd的
  • Params ::检查
  • 区域设置:: Maketext ::简单
  • Module :: Load :: Conditional
  • 模块::负载
  • 测试::更多
  • 的ExtUtils :: MM_Unix :: tool_xsubpp

但现在我对此感到困惑。

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.

1 个答案:

答案 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)"