Can’t locate RRDs.pm in @INC (@INC contains:[转载]

Can’t locate RRDs.pm in @INC (@INC contains:

在配置postfix环境中遇到问题.

平台:64位Centos5.2

在安装rrdtool-1.2.28.tar.gz后启动mailgraph-init和qmonitor-init出错:

tarting mail statistics grapher: mailgraph_ext

Can’t locate RRDs.pm in @INC (@INC contains: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.7/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.6/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.7/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.6/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at /usr/local/mailgraph_ext/mailgraph_ext.pl line 292.

BEGIN failed–compilation aborted at /usr/local/mailgraph_ext/mailgraph_ext.pl line 292.

安装rrdtool操作是:

tar xzvf rrdtool-1.2.28.tar.gz

cd rrdtool-1.2.28

./configure

make

make install

查了下资料,发现RRDs.pm模块没有安装成功.找到2个解决办法:

1,将RRDs.pm复制到perl目录内,方法:

cp -rp /usr/local/rrdtool-1.2.28/lib/perl/5.8.8/x86_64-linux-thread-multi/* /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/

2,到rrdtool的src目录下 运行make site-perl-install,我测试失败.

所以通过1方法解决,再启动mailgraph-init和qmonitor-init

Starting mail statistics grapher: mailgraph_ext

Starting queue statistics grapher: qmonitor

没有错误信息了.

本文来自: E点废墟(www.xok.la) 详细出处参考:http://xok.la/2008/08/cant_locate_rrds_pm_in_inc_inc.html