首页 > 代码库 > linux安装软件报错: Can't locate ExtUtils/Embed.pm in @INC...

linux安装软件报错: Can't locate ExtUtils/Embed.pm in @INC...

安装snmp服务, 中间报错:

Can‘t locate ExtUtils/Embed.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 .).
BEGIN failed--compilation aborted.


到网上搜索, 需要安装perl-ExtUtils-Embed

    yum install perl-ExtUtils-Embed -y


其他人安装nginx或Git也会遇到这错误. 总结原因,应该是:

"perl有两种方法,一种是直接在配置文件写,还有一种是把perl脚本写在外部文件中" (参考:http://www.netingcn.com/nginx-perl.html)


linux安装软件报错: Can't locate ExtUtils/Embed.pm in @INC...