【问题标题】:Perl installation on Debian vs CentOS with Makefile.PL error在 Debian 与 CentOS 上安装 Perl 并出现 Makefile.PL 错误
【发布时间】:2012-11-11 08:50:33
【问题描述】:

我试图弄清楚如何为 Perl 安装正确的 Debian 软件包。我收到以下错误:

Failed to read the configuration: Bad file descriptor at Makefile.PL line 8.

我的 Makefile.PL 文件包含以下行至第 9 行:

use 5.008000;
use ExtUtils::MakeMaker;

# Read the parameters from Triceps Makefiles 
delete $ENV{MAKEFLAGS}; # these cause spurious messages from make
delete $ENV{MAKELEVEL};
my $TRICEPS_CONF = `make --quiet -f ../../cpp/Makefile.inc getconf`;
die "Failed to read the configuration: $!" if ($! != 0);

正如http://www.directadmin.com/forum/showthread.php?t=43558&page=1 处所述,我正在尝试为当前版本的 Debian 找到等效的 apt-get install 命令:

yum install cpan
yum install perl-ExtUtils-CBuilder perl-ExtUtils-MakeMaker
cpan install ExtUtils::Install 

我正在尝试寻找等效的 Debian 解决方案,但不确定要下载或安装哪些软件包。在 Debain 中正确执行此操作所需的确切 apt-get install 命令是什么?

这些 Perl 软件包没有像您期望的那样出现在 Debian 中谢谢

【问题讨论】:

    标签: linux perl centos debian packages


    【解决方案1】:

    在检查它是否包含有用的东西之前,您正在使用$!。代码应该是这样的:

    die("Failed to read the configuration: " . (
       $? < 0    ? "Unable to launch: $!" :
       $? & 0x7F ? "Signal ".($? & 0x7F) :
       $? >> 8   ? "Exit ".($? >> 8) :
       "Unknown error"
    )) if $?;
    

    【讨论】:

      猜你喜欢
      • 2016-06-05
      • 1970-01-01
      • 2020-08-31
      • 2012-07-30
      • 2018-10-17
      • 2021-05-27
      • 2013-11-02
      • 2015-08-06
      • 2017-10-06
      相关资源
      最近更新 更多