gpt4 book ai didi

珀尔 : Error during installion of a module of CPAN

转载 作者:行者123 更新时间:2023-12-02 09:15:53 27 4
gpt4 key购买 nike

我在 Mac OS X 10.5 上运行,我想用 Perl 编写一个程序。但是,我需要安装模块 RDF::TrineDBD::CSV当我安装两者时出现错误。

如果我写:

install RDF::Trine

错误是:

Files=51, Tests=5,  2 wallclock secs ( 0.21 usr  0.18 sys +  1.30 cusr  0.51 csys =  2.20 CPU)Result: FAILFailed 49/51 test programs. 5/5 subtests failed.make: *** [test_dynamic] Error 2  /usr/bin/make test -- NOT OKRunning make install  make test had returned bad status, won't install without force

安装 DBD::CSV 的错误是:

Files=21, Tests=18,  1 wallclock secs ( 0.10 usr  0.08 sys +  0.85 cusr  0.26 csys =  1.29 CPU)Result: FAILFailed 16/21 test programs. 2/18 subtests failed.make: *** [test_dynamic] Error 255  /usr/bin/make test -- NOT OKRunning make install  make test had returned bad status, won't install without force

你有解决办法吗?

最佳答案

你能发布以下输出:

cpan RDF::Trine

甚至

cpan Bundle::CPAN

很多 Perl 开发人员都在 MacOS 上进行开发。如果它不能开箱即用,我会感到惊讶。

已更新,此处的 cpan 输出比注释中的输出更容易阅读。看来您的 cpan 设置为忽略依赖项:

---- Unsatisfied dependencies detected during ----
---- GWILLIAMS/RDF-Trine-0.125.tar.gz ----
Text::Table [requires]
DBD::SQLite [requires]
XML::LibXML::SAX [requires]
Unicode::Escape [requires]
Unicode::String [requires]
Text::CSV [requires]
Error [requires]
Test::Exception [requires]
Test::JSON [requires]
XML::Namespace [requires]
Data::UUID [requires]
Math::Combinatorics [requires]
Set::Scalar [requires]
XML::CommonNS [requires]
XML::LibXML [requires]
JSON [requires]
Log::Log4perl [requires]
Ignoring dependencies on modules ARRAY(0x4d22268), ARRAY(0x5463770), ARRAY(0x4d1bbe4), ARRAY(0x4d22724), ARRAY(0x4d21fc8), ARRAY(0x4d226c4), ARRAY(0x4d21fa4), ARRAY(0x5463830), ARRAY(0x5463878), ARRAY(0x4d24cf0), ARRAY(0x4d22784), ARRAY(0x4d21f74), ARRAY(0x4d21f5c), ARRAY(0x4d21e3c), ARRAY(0x4d21ee4), ARRAY(0x4d21d4c), ARRAY(0x4d21e84), ARRAY(0x4d21c80), ARRAY(0x4d21efc), ARRAY(0x4d2219c), ARRAY(0x4d21fb0), ARRAY(0x4d2213c), ARRAY(0x4d21ddc), ARRAY(0x4d2264c), ARRAY(0x4d21ed8), ARRAY(0x5463818), ARRAY(0x4d21d94), ARRAY(0x4d22640), ARRAY(0x4d21de8), ARRAY(0x4d1bb00), ARRAY(0x4d21c98), ARRAY(0x4d2225c), ARRAY(0x4d21f68), ARRAY(0x4d22334)

prerequisites_policy是控制此行为的配置变量。

通过运行 o conf prescriptives_policy 确认设置,如果它设置为 ask 以外的任何内容,请运行:

o conf prerequisites_policy ask
o conf commit

(那些是小写字母“oh”)

然后重复您的 cpan 命令。

关于珀尔 : Error during installion of a module of CPAN,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3471197/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com