遗漏了哪些模块?

Which modules are missed?

在我的系统上:

$ uname -ra
Linux web.feel-safe.net 4.9.0-6-amd64 #1 SMP Debian 4.9.82-1+deb9u3 (2018-03-02) x86_64 GNU/Linux

我在安装模块时遇到下一个错误:

Can't locate inc/ExtUtils/MY_Metafile.pm in @INC (you may need to install the inc::ExtUtils::MY_Metafile module) (@INC contains: /home/feelsafe/web/local/lib/perl5/x86_64-linux-gnu-thread-multi /home/feelsafe/web/local/lib/perl5 /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/x86_64-linux-gnu/perl5/5.24 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at Makefile.PL line 4.
BEGIN failed--compilation aborted at Makefile.PL line 4.

.

Configuring List-MoreUtils-0.416
Running Makefile.PL
Can't locate inc/latest.pm in @INC (you may need to install the inc::latest module) (@INC contains: /home/feelsafe/web/local/lib/perl5/x86_64-linux-gnu-thread-multi /home/feelsafe/web
/local/lib/perl5 /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/x86_64-linux-gnu/perl5/5.24 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/per
l/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at Makefile.PL line 51.
BEGIN failed--compilation aborted at Makefile.PL line 51.

.

Configuring MRO-Compat-0.12
Running Makefile.PL
Can't locate inc/Module/Install.pm in @INC (you may need to install the inc::Module::Install module) (@INC contains: /home/feelsafe/web/local/lib/perl5/x86_64-linux-gnu-thread-multi /home/feelsafe/web/local/lib/perl5 /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/x86_64-linux-gnu/perl5/5.24 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at Makefile.PL line 1.
BEGIN failed--compilation aborted at Makefile.PL line 1.
-> N/A
-> FAIL Configure failed for MRO-Compat-0.12. See /home/feelsafe/.cpanm/work/1524673518.17946/build.log for details.

目前已找到this篇文章,但还是没看懂问题

我的系统遗漏了什么?问题是什么?

您可能正在使用 "system" perl (cf.perlbrew),其中 %INC 中的库路径假定模块是使用操作系统的包管理器。

构建模块时,有时使用本地构建的 perl 模块 "bootstrapping" 实用程序(如 local::lib, or perlbrew 来管理 perl 的 "non-system" 实例更容易].这使您可以轻松避免将 OS 安装的模块包与您自己本地构建的模块混合使用。

因为我使用 Carton 来部署我的应用程序:

carton install --deployment

我的 cpanfile.snapshot 中有 List-MoreUtils-0.416。因此我使用依赖于“。”的旧模块版本。存在于 @INC.

但是在我遇到 Can't locate inc/latest.pm in @INC 问题的目标主机上,有 DEBIAN perl-5.24.1perl-5.26 应用补丁,删除'.'来自 @INC

因为这个inc::latest在捆绑目录中找不到

为了解决我的问题,我将下一行添加到 cpanfile:

requires 'List::MoreUtils', '>=0.428'

不幸的是 carton update 没有更新 cpanfile.snapshot 中的所有模块,只是在 cpanfile.

中提到过

另外,我觉得安装就OK了inc::latest