1

我试图弄清楚如何为 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 中 谢谢

4

1 回答 1

1

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

die("Failed to read the configuration: " . (
   $? < 0    ? "Unable to launch: $!" :
   $? & 0x7F ? "Signal ".($? & 0x7F) :
   $? >> 8   ? "Exit ".($? >> 8) :
   "Unknown error"
)) if $?;
于 2012-11-23T01:44:13.553 回答