“进行测试”安装旧版本 Perl 失败 (5.18.4)
构建错误:
"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
退出错误:
ext/Errno/t/Errno ............................................. FAILED--Further testing stopped: No errno's are exported
make: *** [makefile:872: test] Error 29
我正在尝试安装旧版本的 perl,因为我需要它来安装一段时间没有更新的 LAMP 堆栈。
我按照此处的说明进行操作:
我在运行“make”时遇到了这些错误测试'命令。
我正在 Ubuntu 20.04.4 LTS 上运行,目前 Perl 版本为 5.30.0。
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:
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不知道这是否能解决您的问题,但在使用当前工具集编译旧版 perls 之前,请使用 Devel ::PatchPerl。 ikegami 在对这个问题的评论中提到了
perlbrew
:它足够聪明,可以为您执行这一步。但是,当您尝试使用最新的 Perls 运行应用程序时会发生什么?这可能是一件很容易解决的事情。大多数新事物都是有功能限制的,或者只能根据要求提供。
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.