CPAN模块安装失败

时间:2018-01-10 15:20:20

标签: 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
! 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.

由于

2 个答案:

答案 0 :(得分:0)

没有安装gmake。安装后这个工作正常!感谢

答案 1 :(得分:0)

我在使用CPAN时遇到了麻烦

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

sudo apt install build-essential

将安装makefile.pl

奇怪,默认情况下未安装一些必需的东西吗?