简体   繁体   English

CPAN 模块安装失败

[英]CPAN Module Installation Fails

Trying to install certain CPAN modules on HP-UX (May 2017), but getting an error:尝试在 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.

But, looks like Perl is set to use gmake.但是,看起来 Perl 设置为使用 gmake。

# perl -V:make
make='gmake';

make is installed on the system. make 安装在系统上。 How do I resolve this?我该如何解决? Any help is appreciated.任何帮助表示赞赏。

Build Log File构建日志文件

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.

Thanks谢谢

gmake was not installed.没有安装 gmake。 After installing this worked fine!安装后这个工作正常! Thanks谢谢

I had this trouble with CPAN我在使用 CPAN 时遇到了这个问题

The key in your error "You probably need to have 'make'."错误的关键“你可能需要'make'。”

sudo apt install build-essential

Will install makefile.pl将安装 makefile.pl

Strange that something essential is not installed by default?奇怪的是,默认情况下没有安装必要的东西?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM