我试图找出如何为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中,谢谢

最佳答案

在检查它是否包含有用的内容之前,您正在使用$!。下面是代码:

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

关于linux - 在Debian与CentOS上进行Perl安装时出现Makefile.PL错误,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/13521456/

10-16 11:12