Error: Can't locate /etc/centreon/conf.pm in @INC (@IN
Error: Can't locate /etc/centreon/conf.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/share/perl5/vendor_perl/centreon/script.pm line 140.
[root@nagios ~]# tar -xvf Config-IniFiles-2.52.tar_.gz
Config-IniFiles-2.52
Config-IniFiles-2.52/Changes
Config-IniFiles-2.52/MANIFEST
Config-IniFiles-2.52/META.yml
Config-IniFiles-2.52/Build.PL
Config-IniFiles-2.52/Makefile.PL
Config-IniFiles-2.52/README
Config-IniFiles-2.52/t
Config-IniFiles-2.52/t/19param-found-outside-section.t
Config-IniFiles-2.52/t/08group.t
Config-IniFiles-2.52/t/test.ini
Config-IniFiles-2.52/t/brackets-in-values.ini
Config-IniFiles-2.52/t/16case-sensitive-default.t
Config-IniFiles-2.52/t/05hash.t
Config-IniFiles-2.52/t/14brackets-within-values.t
Config-IniFiles-2.52/t/02weird.t
Config-IniFiles-2.52/t/allowed-comment-chars.ini
Config-IniFiles-2.52/t/04import.t
Config-IniFiles-2.52/t/01basic.t
Config-IniFiles-2.52/t/es.ini
Config-IniFiles-2.52/t/case-sensitive.ini
Config-IniFiles-2.52/t/en.ini
Config-IniFiles-2.52/t/15store-and-retrieve-here-doc-terminator.t
Config-IniFiles-2.52/t/pod-coverage.t
Config-IniFiles-2.52/t/20allowedcommentchars.t
Config-IniFiles-2.52/t/06oo.t
Config-IniFiles-2.52/t/array.ini
Config-IniFiles-2.52/t/24case-sensitive-exists.t
Config-IniFiles-2.52/t/blank.ini
Config-IniFiles-2.52/t/pod.t
Config-IniFiles-2.52/t/03comments.t
Config-IniFiles-2.52/t/13val-in-list-context.t
Config-IniFiles-2.52/t/09case.t
Config-IniFiles-2.52/t/17untainted-multiline-values.t
Config-IniFiles-2.52/t/12open-empty-file.t
Config-IniFiles-2.52/t/23scalar-ref.t
Config-IniFiles-2.52/t/ca.ini
Config-IniFiles-2.52/t/00load.t
Config-IniFiles-2.52/t/11copy-ties-with-array-vals.t
Config-IniFiles-2.52/t/18non-contiguous-groups.t
Config-IniFiles-2.52/t/non-contiguous-groups.ini
Config-IniFiles-2.52/t/case-sensitive-default.ini
Config-IniFiles-2.52/t/bad.ini
Config-IniFiles-2.52/t/07misc.t
Config-IniFiles-2.52/t/22trailing-comment-lines.t
Config-IniFiles-2.52/t/trailing-comments.ini
Config-IniFiles-2.52/t/cmt.ini
Config-IniFiles-2.52/t/10delta.t
Config-IniFiles-2.52/t/lib
Config-IniFiles-2.52/t/lib/Config
Config-IniFiles-2.52/t/lib/Config/IniFiles
Config-IniFiles-2.52/t/lib/Config/IniFiles/Debug.pm
Config-IniFiles-2.52/lib
Config-IniFiles-2.52/lib/Config
Config-IniFiles-2.52/lib/Config/IniFiles.pm
Config-IniFiles-2.52/inc
Config-IniFiles-2.52/inc/Test
Config-IniFiles-2.52/inc/Test/Run
Config-IniFiles-2.52/inc/Test/Run/Builder.pm
[root@nagios ~]# cd Config-IniFiles-2.52
[root@nagios Config-IniFiles-2.52]# ll
total 52
-r--r--r-- 1 501 nagcmd 1073 Jun 28 2009 Build.PL
-r--r--r-- 1 501 nagcmd 16849 Jun 28 2009 Changes
drwxr-xr-x 3 501 nagcmd 4096 Jun 28 2009 inc
drwxr-xr-x 3 501 nagcmd 4096 Jun 28 2009 lib
-r--r--r-- 1 501 nagcmd 629 Jun 28 2009 Makefile.PL
-r--r--r-- 1 501 nagcmd 902 Jun 28 2009 MANIFEST
-r--r--r-- 1 501 nagcmd 796 Jun 28 2009 META.yml
-r--r--r-- 1 501 nagcmd 812 Jun 28 2009 README
drwxr-xr-x 3 501 nagcmd 4096 Jun 28 2009 t
[root@nagios Config-IniFiles-2.52]# perl Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for Config::IniFiles
[root@nagios Config-IniFiles-2.52]# make
cp lib/Config/IniFiles.pm blib/lib/Config/IniFiles.pm
Manifying blib/man3/Config::IniFiles.3pm
[root@nagios Config-IniFiles-2.52]# make install
Installing /usr/local/share/perl5/Config/IniFiles.pm
Installing /usr/local/share/man/man3/Config::IniFiles.3pm
Appending installation info to /usr/lib64/perl5/perllocal.pod
[root@nagios Config-IniFiles-2.52]#
Error: Can't locate /etc/centreon/conf.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/share/perl5/vendor_perl/centreon/script.pm line 140.
缺少Config/IniFiles.pm
安装: tar -xvf Config-IniFiles-2.52.tar_.gz[root@nagios ~]# tar -xvf Config-IniFiles-2.52.tar_.gz
Config-IniFiles-2.52
Config-IniFiles-2.52/Changes
Config-IniFiles-2.52/MANIFEST
Config-IniFiles-2.52/META.yml
Config-IniFiles-2.52/Build.PL
Config-IniFiles-2.52/Makefile.PL
Config-IniFiles-2.52/README
Config-IniFiles-2.52/t
Config-IniFiles-2.52/t/19param-found-outside-section.t
Config-IniFiles-2.52/t/08group.t
Config-IniFiles-2.52/t/test.ini
Config-IniFiles-2.52/t/brackets-in-values.ini
Config-IniFiles-2.52/t/16case-sensitive-default.t
Config-IniFiles-2.52/t/05hash.t
Config-IniFiles-2.52/t/14brackets-within-values.t
Config-IniFiles-2.52/t/02weird.t
Config-IniFiles-2.52/t/allowed-comment-chars.ini
Config-IniFiles-2.52/t/04import.t
Config-IniFiles-2.52/t/01basic.t
Config-IniFiles-2.52/t/es.ini
Config-IniFiles-2.52/t/case-sensitive.ini
Config-IniFiles-2.52/t/en.ini
Config-IniFiles-2.52/t/15store-and-retrieve-here-doc-terminator.t
Config-IniFiles-2.52/t/pod-coverage.t
Config-IniFiles-2.52/t/20allowedcommentchars.t
Config-IniFiles-2.52/t/06oo.t
Config-IniFiles-2.52/t/array.ini
Config-IniFiles-2.52/t/24case-sensitive-exists.t
Config-IniFiles-2.52/t/blank.ini
Config-IniFiles-2.52/t/pod.t
Config-IniFiles-2.52/t/03comments.t
Config-IniFiles-2.52/t/13val-in-list-context.t
Config-IniFiles-2.52/t/09case.t
Config-IniFiles-2.52/t/17untainted-multiline-values.t
Config-IniFiles-2.52/t/12open-empty-file.t
Config-IniFiles-2.52/t/23scalar-ref.t
Config-IniFiles-2.52/t/ca.ini
Config-IniFiles-2.52/t/00load.t
Config-IniFiles-2.52/t/11copy-ties-with-array-vals.t
Config-IniFiles-2.52/t/18non-contiguous-groups.t
Config-IniFiles-2.52/t/non-contiguous-groups.ini
Config-IniFiles-2.52/t/case-sensitive-default.ini
Config-IniFiles-2.52/t/bad.ini
Config-IniFiles-2.52/t/07misc.t
Config-IniFiles-2.52/t/22trailing-comment-lines.t
Config-IniFiles-2.52/t/trailing-comments.ini
Config-IniFiles-2.52/t/cmt.ini
Config-IniFiles-2.52/t/10delta.t
Config-IniFiles-2.52/t/lib
Config-IniFiles-2.52/t/lib/Config
Config-IniFiles-2.52/t/lib/Config/IniFiles
Config-IniFiles-2.52/t/lib/Config/IniFiles/Debug.pm
Config-IniFiles-2.52/lib
Config-IniFiles-2.52/lib/Config
Config-IniFiles-2.52/lib/Config/IniFiles.pm
Config-IniFiles-2.52/inc
Config-IniFiles-2.52/inc/Test
Config-IniFiles-2.52/inc/Test/Run
Config-IniFiles-2.52/inc/Test/Run/Builder.pm
[root@nagios ~]# cd Config-IniFiles-2.52
[root@nagios Config-IniFiles-2.52]# ll
total 52
-r--r--r-- 1 501 nagcmd 1073 Jun 28 2009 Build.PL
-r--r--r-- 1 501 nagcmd 16849 Jun 28 2009 Changes
drwxr-xr-x 3 501 nagcmd 4096 Jun 28 2009 inc
drwxr-xr-x 3 501 nagcmd 4096 Jun 28 2009 lib
-r--r--r-- 1 501 nagcmd 629 Jun 28 2009 Makefile.PL
-r--r--r-- 1 501 nagcmd 902 Jun 28 2009 MANIFEST
-r--r--r-- 1 501 nagcmd 796 Jun 28 2009 META.yml
-r--r--r-- 1 501 nagcmd 812 Jun 28 2009 README
drwxr-xr-x 3 501 nagcmd 4096 Jun 28 2009 t
[root@nagios Config-IniFiles-2.52]# perl Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for Config::IniFiles
[root@nagios Config-IniFiles-2.52]# make
cp lib/Config/IniFiles.pm blib/lib/Config/IniFiles.pm
Manifying blib/man3/Config::IniFiles.3pm
[root@nagios Config-IniFiles-2.52]# make install
Installing /usr/local/share/perl5/Config/IniFiles.pm
Installing /usr/local/share/man/man3/Config::IniFiles.3pm
Appending installation info to /usr/lib64/perl5/perllocal.pod
[root@nagios Config-IniFiles-2.52]#
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/29500582/viewspace-1680946/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/29500582/viewspace-1680946/