App-perlbrew icon indicating copy to clipboard operation
App-perlbrew copied to clipboard

New Perlbrew install can't install Perls. Can't locate ExtUtils/MakeMaker.pm

Open tommybutler opened this issue 10 months ago • 6 comments

Can't install Perls on brand new RHEL8 install on a new VM

$ curl -L https://install.perlbrew.pl|bash

$ source ~/perls/perlbrew/etc/bashrc

$ perlbrew init

$ perlbrew install --thread --multi --64int --ld --noman perl-5.40.1

Can't locate ExtUtils/MakeMaker.pm in @INC (you may need to install the ExtUtils::MakeMaker module) (@INC contains:
FatPacked::93943441320136=HASH(0x5570e972e8c8) /us/local/lib64/perl5 /us/local/share/perl /usr/lib64/perl5/vendor_perl /usr/share/perl/vendor_perl /usr/lib64/perl /usr/share/perl) at /home/tommy/perl/perlbrew/bin/patchperl line 513.
Compilation failed in require at /home/tommy/perl/perlbrew/bin/patchperl line 14379.
BEGIN failed--compilation aborted at /home/tommy/perl5/perlbrew/bin/patchperl line 14379.

tommybutler avatar Feb 28 '25 17:02 tommybutler

According to https://metacpan.org/pod/Module::Build

 [ExtUtils::MakeMaker](https://metacpan.org/pod/ExtUtils::MakeMaker) has been 
 a core module in every version of Perl

But is that /usr/local path (/us/local ?) in

 /us/local/lib64/perl5 /us/local/share/perl

a mistake?

And the patchperl path, is it

/home/tommy/perl/perlbrew/bin/patchperl line 14379.

or

/home/tommy/perl5/perlbrew/bin/patchperl line 14379.

drbean avatar Mar 01 '25 06:03 drbean

Responses inline below...

According to https://metacpan.org/pod/Module::Build

 [ExtUtils::MakeMaker](https://metacpan.org/pod/ExtUtils::MakeMaker) has been 
 a core module in every version of Perl

Indeed, and so I'm very puzzled as to why a core module can't be located.

But is that /usr/local path (/us/local ?) in

 /us/local/lib64/perl5 /us/local/share/perl

a mistake?

Yes, this was a typo. It is supposed to be /usr/ and not /us/

And the patchperl path, is it

/home/tommy/perl/perlbrew/bin/patchperl line 14379.

or

/home/tommy/perl5/perlbrew/bin/patchperl line 14379.

Confirmed, the above path for patchperl is /home/tommy/perl5/perlbrew/bin/patchperl. That's accurate from the original fatal stack trace

tommybutler avatar Mar 06 '25 17:03 tommybutler

This message is also to confirm that once again, on a brand new RHEL8 VM, the exact same problem as above is occurring. ExtUtils::MakeMaker can't be found. I'm going to try an older version of perlbrew and I'll report back.

tommybutler avatar Mar 06 '25 17:03 tommybutler

This message is to confirm that rolling back to perlbrew version 0.99 solved our problem. Using the latest perlbrew (version 1.01) consistently and repeatedly fails with the error message that ExtUtils::MakeMaker cannot be found.

tommybutler avatar Mar 06 '25 18:03 tommybutler

I bumped into the same issue. Initially I thought the system I used has a "cut-down" install of perl, but then I've found this issue. @tommybutler Care to share where you got version 0.99 ?

savedario avatar Jul 09 '25 17:07 savedario

Using the latest perlbrew (version 1.01) consistently and repeatedly fails with the error message that ExtUtils::MakeMaker cannot be found.

@tommybutler thanks for spending times on making these reports.

perlbrew currently requires just one function (prompt) from ExtUtils::MakeMaker, I guess we could make a copy of that and basically get rid of this dependency...

That will make it easier to setup for various other linux dstros too, since ExtUtils::MakeMaker tend to be excluded from a new installation.

gugod avatar Aug 10 '25 03:08 gugod