I am trying to figure out how to install the proper Debian packages for Perl. I am getting a make error of:
我试图弄清楚如何为Perl安装适当的Debian软件包。我收到的错误是:
Failed to read the configuration: Bad file descriptor at Makefile.PL line 8.
My Makefile.PL file contain the following line up to line 9:
我的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);
As described here at http://www.directadmin.com/forum/showthread.php?t=43558&page=1 I am trying to find the equivalent apt-get install commands for the current version of Debian for:
如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
I am trying to find the equivelant Debian solution but unsure which packages to download or install. What would be the exact apt-get install commands needed to properly make this within Debain?
我试图找到equivelant Debian解决方案,但不确定要下载或安装哪些软件包。在Debain中正确制作这个命令需要什么样的apt-get install命令?
These Perl packages don't appear in Debian as you would expect Thanks
这些Perl软件包没有像你期望的那样出现在Debian中
1 个解决方案
#1
1
You're using $!
before checking if it contains something useful. Here's what the code should be:
你在用$!在检查它是否包含有用的东西之前。这是代码应该是什么:
die("Failed to read the configuration: " . (
$? < 0 ? "Unable to launch: $!" :
$? & 0x7F ? "Signal ".($? & 0x7F) :
$? >> 8 ? "Exit ".($? >> 8) :
"Unknown error"
)) if $?;
#1
1
You're using $!
before checking if it contains something useful. Here's what the code should be:
你在用$!在检查它是否包含有用的东西之前。这是代码应该是什么:
die("Failed to read the configuration: " . (
$? < 0 ? "Unable to launch: $!" :
$? & 0x7F ? "Signal ".($? & 0x7F) :
$? >> 8 ? "Exit ".($? >> 8) :
"Unknown error"
)) if $?;