简体   繁体   中英

'Make test' fails on installing older version of Perl (5.18.4)

Error in building:

 "EISDIR" is not exported by the Errno module
Can't continue after import errors at run/switches.t line 17.
BEGIN failed--compilation aborted at run/switches.t line 17.
FAILED--no leader found

Exit error:

ext/Errno/t/Errno ............................................. FAILED--Further testing stopped: No errno's are exported
make: *** [makefile:872: test] Error 29

I am attempting to install an older version of perl as I require it for the installation of a LAMP Stack that has not been updated for a while.

I am following the instructions here:

https://help.dreamhost.com/hc/en-us/articles/360028572351-Installing-a-custom-version-of-Perl-locally

I run into these errors upon running the 'make test' command.

I am running on Ubuntu 20.04.4 LTS and currently have Perl version 5.30.0.

I don't know if this solves your problem, but before you compile older perls with current toolsets, use Devel::PatchPerl . ikegami mentioned perlbrew in his comment to the question: it's smart enough to do that step for you.

But, what happens when you try to run your application with recent Perls? That might be an easy thing to fix. Most new things are feature-gated or only available on request.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM