New Perlbrew install can't install Perls. Can't locate ExtUtils/MakeMaker.pm
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.
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.
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/perla 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
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.
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.
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 ?
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.