在 @INC 中找不到 Core/Utility.pm
我有一个包含指令 : 的脚本,
use Core::Utility
并且收到错误“无法在 @INC 中定位 Core/Utility.pm”。我正在运行 OpenSUSE 11.4 并尝试过:sudo zypper in -C 'perl(Core::Utility)'
但它没有找到任何内容,而且我在网络。我不懂 Perl,我只是想在 /etc/init.d 中运行启动脚本
I have a script that contains the directive :
use Core::Utility
and I am getting the error "Can't locate Core/Utility.pm in @INC". I'm running OpenSUSE 11.4 and have tried :sudo zypper in -C 'perl(Core::Utility)'
but it doesn't find anything and I can't find any references to it on the web. I don't know any perl, I'm just trying to get a startup script running in /etc/init.d
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在您的错误中,您还应该得到类似“@INC Contains:”的信息。如果 /usr/lib/perl5/vendor_perl/5.8.8 不在其中,您可以在脚本中使用以下行添加它:
perldoc -v @INC
In your error, you should also get something like "@INC Contains: ". If /usr/lib/perl5/vendor_perl/5.8.8 is not in there, you can add it with this line in the script:
perldoc -v @INC
CPAN 上没有名为
Core::Utility
的模块,这强烈表明您正在处理一些尚未向公众发布的内部模块。因此,解决方案是非技术性的:如果您想了解该模块,请联系您获取脚本的计算机的系统管理员,或您认为可能了解该模块的其他人。There is no module named
Core::Utility
on CPAN, which strongly suggests that you're dealing with some in-house module that's not been released to the public. So the solution is non-technical: If you want to find out about that module, contact the system administrator of the machine you got the script from, or another person you think might know something about it.