在 Debian vs CentOS 上安装Perl,出现 Makefile.PL 错误



我正在尝试弄清楚如何为 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 安装命令:

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

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

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

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

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

最新更新