我想弄清楚如何为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中
答案 0 :(得分:1)
您在检查它是否包含有用的内容之前使用$!
。这是代码应该是什么:
die("Failed to read the configuration: " . (
$? < 0 ? "Unable to launch: $!" :
$? & 0x7F ? "Signal ".($? & 0x7F) :
$? >> 8 ? "Exit ".($? >> 8) :
"Unknown error"
)) if $?;