The perl recommend me to install ExtUtils::Manifest when I install ExtUtils::Manifest

Viewed 1824

The perl recommend me to install ExtUtils::Manifest when I install ExtUtils::Manifest.

The os is Win10, and version of perl is strawberry-perl-5.24.4.1-64bit.msi.

The detail information I get is following:

>C:\Users\username>cpanm ExtUtils::Manifest
--> Working on ExtUtils::Manifest
Fetching http://www.cpan.org/authors/id/E/ET/ETHER/ExtUtils-Manifest-1.72.tar.gz ... OK
==> Found dependencies: ExtUtils::MakeMaker
--> Working on ExtUtils::MakeMaker
Fetching http://www.cpan.org/authors/id/B/BI/BINGOS/ExtUtils-MakeMaker-7.44.tar.gz ... OK
Configuring ExtUtils-MakeMaker-7.44 ... OK
Can't locate ExtUtils/Manifest.pm in @INC (you may need to install the ExtUtils::Manifest module) (@INC contains: FatPacked::25770454720=HASH(0x60009eec0) /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl) at /c/Strawberry/perl/bin/cpanm line 119.
2 Answers

ExtUtils::Manifest and ExtUtils::MakeMaker are both critical Perl build tools. They're normally bundled with Perl. They have a circular dependency, so MakeMaker bundles ExtUtils::Manifest and other modules in its source distribution. If you're lacking ExtUtils::Manifest, MakeMaker should have used its bundled version.

Looking at its build file, the only way it would have tried to install ExtUtils::Manifest as a dependency is if the BUILDING_AS_PACKAGE environment variable is set, or if the Makefile.PL is run with --release. Neither should be the case.

Check for that environment variable.

Probably a bit too late on this, but just wanted to point out what @satbekmyrza posted in comments.

Please also double check that you're using PowerShell or default CMD on Windows. I was also using Git bash by default and system thought I was on linux. (Same errors with /usr/lib/perl5/site_perl and @INC) But it worked perfectly when I switch to windows-native terminals without fixing any PATHs etc.

Related