Perl CPAN模块安装失败

Perl CPAN模块安装失败,perl,cpan,hp-ux,Perl,Cpan,Hp Ux,试图在HP-UX上安装某些CPAN模块(2017年5月),但出现错误: # cpanm ExtUtils-MakeMaker-7.30.tar.gz --> Working on ExtUtils-MakeMaker-7.30.tar.gz Fetching file:///home/users/root_user/CPAN/ExtUtils-MakeMaker-7.30.tar.gz ... OK Configuring ExtUtils-MakeMaker-7.30 ... OK !

试图在HP-UX上安装某些CPAN模块(2017年5月),但出现错误:

# cpanm ExtUtils-MakeMaker-7.30.tar.gz
--> Working on ExtUtils-MakeMaker-7.30.tar.gz
Fetching file:///home/users/root_user/CPAN/ExtUtils-MakeMaker-7.30.tar.gz ... OK
Configuring ExtUtils-MakeMaker-7.30 ... OK
! Can't configure the distribution. You probably need to have 'make'. See /.cpanm/work/1515577528.15913/build.log for details.
但是,看起来Perl将使用gmake

# perl -V:make
make='gmake';
make已安装在系统上。我如何解决这个问题?感谢您的帮助

生成日志文件

cpanm (App::cpanminus) 1.7043 on perl 5.008008 built for IA64.ARCHREV_0-thread-multi
Work directory is //.cpanm/work/1515577528.15913
You have LWP 5.820
Falling back to Archive::Tar 1.40
--> Working on ExtUtils-MakeMaker-7.30.tar.gz
Fetching file:///home/users/root_user/CPAN/ExtUtils-MakeMaker-7.30.tar.gz
-> OK
Unpacking ExtUtils-MakeMaker-7.30.tar.gz
Entering ExtUtils-MakeMaker-7.30
Checking configure dependencies from META.json
Configuring ExtUtils-MakeMaker-7.30
Running Makefile.PL 
Using included version of CPAN::Meta (2.143240) because it is not already installed.
Using included version of Parse::CPAN::Meta (1.4414) because it is not already installed.
Using included version of CPAN::Meta::YAML (0.011) because it is not already installed.
Using included version of File::Temp (0.22) as it is newer than the installed version (0.16).
Using included version of ExtUtils::Manifest (1.70) as it is newer than the installed version (1.46).
Using included version of JSON::PP (2.27203) because it is not already installed.
Using included version of ExtUtils::Install (2.06) as it is newer than the installed version (1.33).
Using included version of CPAN::Meta::Requirements (2.131) because it is not already installed.
Checking if your kit is complete...
Warning: the following files are missing in your kit:
        't/liblist/win32/di
        't/liblist/win32/space
Please inform the author.
Generating a Unix-style Makefile
Writing Makefile for ExtUtils::MakeMaker
Writing MYMETA.yml and MYMETA.json
-> OK
Checking dependencies from MYMETA.json ...
Checking if you have Data::Dumper 0 ... Yes (2.121_08)
Checking if you have File::Spec 0.8 ... Yes (3.12)
Checking if you have Pod::Man 0 ... Yes (1.37)
Checking if you have File::Basename 0 ... Yes (2.74)
Checking if you have Encode 0 ... Yes (2.12)
-> FAIL Can't configure the distribution. You probably need to have 'make'. See /.cpanm/work/1515577528.15913/build.log for details.

谢谢,没有安装gmake。安装后,这个工作很好!谢谢

我在CPAN上遇到了这个麻烦

错误中的键“您可能需要有'make'。”

将安装makefile.pl


奇怪的是,默认情况下没有安装必要的东西?

尝试改用
cpan
。根据我的经验,当
cpanm
失败时,它通常可以成功安装模块。毕竟,人们可能只使用
cpan
测试安装脚本。如果失败,请尝试启动
cpan
,然后使用
lookextutils::MakeMaker
,后跟
perl Makefile.pl
<代码>gmake<代码>gmake测试;和
gmake安装
(如果测试成功,或自行承担风险),如中所述。谢谢。
gmake
在您的路径中吗?没有安装gmake。安装后,这个工作很好!谢谢
sudo apt install build-essential