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

Latest perlbrew won't install perls on Linux

Open nigelhorne opened this issue 8 months ago • 1 comments

Any attempt to install fails with this error message:

Can't load 'lib/auto/Cwd/Cwd.o' for module Cwd: lib/auto/Cwd/Cwd.o: only ET_DYN and ET_EXEC can be loaded at lib/XSLoader.pm line 94. I'm not using strange CFLAGS or anything, just running:

perlbrew install perl-5.40.2

nigelhorne avatar Apr 18 '25 19:04 nigelhorne

Does $(head -n1 "$(which perlbrew)" | tail -c +3) -e 'use Cwd' run without errors?

(That is, find the perlbrew script, extract the first line (usually something like #!/usr/bin/perl), skip the first two characters (i.e. #!), run the rest of the line as a command (assumed to be a path to a perl), and see whether it can load Cwd.)

mauke avatar Jul 18 '25 14:07 mauke