安装rrdtool,运行make的时候报错:Can't locate ExtUtils/MakeMaker.pm in @INC。


详细报错信息:

mkdir -p ./perl-piped

( cd ./perl-piped \

          && ( test -e Makefile.PL || ln -s /usr/local/soft/rrdtool-1.5.3/bindings/perl-piped/Makefile.PL ) \

          && ( test -e RRDp.pm || ln -s /usr/local/soft/rrdtool-1.5.3/bindings/perl-piped/RRDp.pm ) \

          && ( test -e t || ln -s /usr/local/soft/rrdtool-1.5.3/bindings/perl-piped/t ) \

          && env \

             ABS_TOP_SRCDIR=/usr/local/soft/rrdtool-1.5.3 \

             ABS_TOP_BUILDDIR=/usr/local/soft/rrdtool-1.5.3 \

             ABS_SRCDIR=/usr/local/soft/rrdtool-1.5.3/bindings/perl-piped \

             /usr/bin/perl Makefile.PL PREFIX=/usr/local/rrdtool INSTALL_BASE= LIB=/usr/local/rrdtool/lib/perl/5.10.1 \

          && make )

Can't locate ExtUtils/MakeMaker.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 Makefile.PL line 1.

BEGIN failed--compilation aborted at Makefile.PL line 1.

make[2]: *** [perl-piped] 错误 2

make[2]: Leaving directory `/usr/local/soft/rrdtool-1.5.3/bindings'

make[1]: *** [all-recursive] 错误 1

make[1]: Leaving directory `/usr/local/soft/rrdtool-1.5.3/bindings'

make: *** [all-recursive] 错误 1


解决办法:

1、首先根据提示运行:yum -y install perl-devel 发现没有解决问题

2、安装:yum install -y perl-ExtUtils-CBuilder perl-ExtUtils-MakeMaker

问题解决!