在centos6.0上面安装munin-node,但是启动时出现:
Starting Munin Node: Can't locate Net/Server/Fork.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at /usr/sbin/munin-node line 130.
BEGIN Failed--compilation aborted at /usr/sbin/munin-node line 130.
但通过find查找发现其实这个包是存在的,路径为/usr/lib/perl5/vendor_perl/5.8.8/Net
find /usr/ -name "Fork.pm"
但这个路径确实没有包含在@INC
经过一翻测试,做如下软链接,则解决问题:
ln -s /usr/lib/perl5/vendor_perl/5.8.8/Net /usr/lib64/perl5/vendor_perl/Net