gpt4 book ai didi

Perl 抛出 "Can' t 在 @INC 中定位 Config/YAML.pm"

转载 作者:行者123 更新时间:2023-12-04 01:35:16 29 4
gpt4 key购买 nike

我收到 Can't locate Config/YAML.pm in @INC (you may need to install the Config::YAML module)在运行 perl 脚本时。

Can't locate Config/YAML.pm in @INC (you may need to install the Config::YAML module) (@INC contains: /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl .) at myperlscript line 8. BEGIN failed--compilation aborted at myperlscript line 8.



脚本的第 8 行显示 use Config::YAML; .
我正在使用 Ubuntu 并安装了 libdata-yaml-perllibyaml-perl包,但仍然收到相同的错误。还需要什么?

最佳答案

Config::YAML需要不同的包。安装 libconfig-yaml-perl 包,问题将得到解决。

关于Perl 抛出 "Can' t 在 @INC 中定位 Config/YAML.pm",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59784627/

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