I’ve tested this on a few, fully up-to-date Rocky 8 machines. The system perl:
Installed Packages
Name : perl
Epoch : 4
Version : 5.26.3
Release : 422.el8
Architecture : x86_64
Size : 0.0
Source : perl-5.26.3-422.el8.src.rpm
Won’t build any of the CPAN libraries I’m trying to install. I had to install some dependencies to get to the point I could test this:
dnf -y install perl-App-cpanminus perl-LWP-Protocol-https
After those packages were installed, I drop super-user privileges, as I’m trying to run this as an unprivileged user, leveraging the perl “local::lib” stuff that cpanm says it will use automatically.
cpanm ExtUtils::Config
which fails.
If I go into the build dir as indicated in the logs and try by hand:
make clean
perl Makefile.PL
make
make test
the make test fails, as the it can’t find the .pm files:
more /uufs/chpc.utah.edu/common/home/u0064824/.cpanm/work/1746052039.105352/build.log
cpanm (App::cpanminus) 1.7044 on perl 5.026003 built for x86_64-linux-thread-multi
Work directory is /uufs/chpc.utah.edu/common/home/u0064824/.cpanm/work/1746052039.105352
You have make /bin/make
You have LWP 6.34
You have /bin/tar: tar (GNU tar) 1.30
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later https://gnu.org/licenses/gpl.html.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by John Gilmore and Jay Fenlason.
You have /bin/unzip
Searching ExtUtils::Config () on cpanmetadb …
→ Working on ExtUtils::Config
Fetching https://www.cpan.org/authors/id/L/LE/LEONT/ExtUtils-Config-0.010.tar.gz
→ OK
Unpacking ExtUtils-Config-0.010.tar.gz
Entering ExtUtils-Config-0.010
Checking configure dependencies from META.json
Checking if you have ExtUtils::MakeMaker 6.58 … Yes (7.34)
Configuring ExtUtils-Config-0.010
Running Makefile.PL
Checking if your kit is complete…
Looks good
Generating a Unix-style Makefile
Writing Makefile for ExtUtils::Config
Writing MYMETA.yml and MYMETA.json
→ OK
Checking dependencies from MYMETA.json …
Checking if you have Test::More 0.88 … Yes (1.302135)
Checking if you have File::Spec 0 … Yes (3.74)
Checking if you have IPC::Open3 0 … Yes (1.20)
Checking if you have Data::Dumper 0 … Yes (2.167)
Checking if you have warnings 0 … Yes (1.37)
Checking if you have strict 0 … Yes (1.11)
Checking if you have IO::Handle 0 … Yes (1.36)
Checking if you have ExtUtils::MakeMaker 0 … Yes (7.34)
Checking if you have ExtUtils::MakeMaker::Config 0 … Yes (7.34)
Building and testing ExtUtils-Config-0.010
PERL_DL_NONLAZY=1 “/usr/bin/perl” “-MExtUtils::Command::MM” “-MTest::Harness” “-e” "undef Test::Harness::Switches; test_harness(0, ‘blib/lib’, ‘blib/arch’)" t/.t
Failed test ‘ExtUtils/Config.pm loaded ok’
at t/00-compile.t line 44.
got: ‘512’
expected: ‘0’
Can’t locate ExtUtils/Config.pm in @INC (you may need to install the ExtUtils::Config module) (@INC contains: /uufs/chpc.utah.edu/common/home/u0064824/.cpanm/work/1746052039.105352/ExtUtils-Config-0.010/blib/arch /uufs/chpc.utah.edu/common/hom
e/u0064824/.cpanm/work/1746052039.105352/ExtUtils-Config-0.010/blib/lib /uufs/chpc.utah.edu/common/home/u0064824/.cpanm/work/1746052039.105352/ExtUtils-Config-0.010/blib/lib /uufs/chpc.utah.edu/common/home/u0064824/.cpanm/work/1746052039.10535
2/ExtUtils-Config-0.010/blib/arch /uufs/chpc.utah.edu/common/home/u0064824/perl5/lib/perl5/5.26.3/x86_64-linux-thread-multi /uufs/chpc.utah.edu/common/home/u0064824/perl5/lib/perl5/5.26.3/x86_64-linux-thread-multi /uufs/chpc.utah.edu/common/ho
me/u0064824/perl5/lib/perl5/5.26.3 /uufs/chpc.utah.edu/common/home/u0064824/perl5/lib/perl5/x86_64-linux-thread-multi /uufs/chpc.utah.edu/common/home/u0064824/perl5/lib/perl5/5.26.3/x86_64-linux-thread-multi /uufs/chpc.utah.edu/common/home/u00
64824/perl5/lib/perl5/5.26.3 /uufs/chpc.utah.edu/common/home/u0064824/perl5/lib/perl5/x86_64-linux-thread-multi /uufs/chpc.utah.edu/common/home/u0064824/perl5/lib/perl5 /uufs/chpc.utah.edu/common/home/u0064824/perl5/lib/perl5/5.26.3/x86_64-lin
ux-thread-multi /uufs/chpc.utah.edu/common/home/u0064824/perl5/lib/perl5/5.26.3 /uufs/chpc.utah.edu/common/home/u0064824/perl5/lib/perl5/x86_64-linux-thread-multi /uufs/chpc.utah.edu/common/home/u0064824/perl5/lib/perl5 /usr/local/lib64/perl5
/usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at -e line 1.
I thought this was just something I’d messed up, but after trying it on three machines now, I’m not so sure.
Steve Harper