-2
我试图在Linux Mint的用Perl 5.22安装的DateTime模块18 sudo cpanm DateTime
失败:无法安装包::藏匿:: XS
Installing Package::Stash::XS failed. See [...] build.log for details. Retry with --force to force install it.
--force
没有帮助,但使用普通的老cpan
透露,
usr/lib/x86_64-linux-gnu/perl/5.22/CORE/perl.h:701:23: fatal error: sys/types.h: No such file or directory
'--force'几乎从来没有帮助(坏建议,cpanm!)。 '--force'不能修复缺失的依赖关系,只是在测试失败时才安装模块。你通常不希望安装某些未通过自己测试的东西。另外,您不需要切换到cpan就可以找到确切的错误;同样的输出在cpanm的构建日志中,就像错误消息告诉你的一样。 – ThisSuitIsBlackNot