首页 > 代码库 > Can't locate XML/Simple.pm in @INC (@INC contains: /opt/local/lib

Can't locate XML/Simple.pm in @INC (@INC contains: /opt/local/lib

苹果电脑上使用perl发现下面这个错误:


Can‘t locate XML/Simple.pm in @INC (@INC contains: /opt/local/lib


解决方法:

sudo cpan install XML::Simple


这个安装时间有点长。

Can't locate XML/Simple.pm in @INC (@INC contains: /opt/local/lib