Bonjour,
Je veux utiliser les traps snmp dans nagios et lorsque je veux lancer le service snmptt, j'obtiens un message d'erreur:
[root@snmpsrv2 Config-IniFiles-2.73-9BxI1a]# service snmptt start
Starting snmptt: Can't locate Config/IniFiles.pm in @INC (@INC contains: /usr/local/lib/perl5 /usr/local/share/perl5 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl5 /usr/share/perl5 /usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi /usr/local/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl /usr/lib/perl5/site_perl .) at /usr/sbin/snmptt line 4026.
BEGIN failed--compilation aborted at /usr/sbin/snmptt line 4026.
[FAILED]
Donc, je 'essaie d'installer le module Config::IniFiles:
cpan[1]> install Config::IniFiles
Going to read '/root/.cpan/Metadata'
Database was generated on Tue, 15 May 2012 10:15:04 GMT
Running install for module 'Config::IniFiles'
Running make for S/SH/SHLOMIF/Config-IniFiles-2.73.tar.gz
Checksum for /root/.cpan/sources/authors/id/S/SH/SHLOMIF/Config-IniFiles-2.73.tar.gz ok
Scanning cache /root/.cpan/build for sizes
............................................................................DONE
CPAN.pm: Going to build S/SH/SHLOMIF/Config-IniFiles-2.73.tar.gz
Can't locate Module/Build/Compat.pm in @INC (@INC contains: /usr/local/lib/perl5 /usr/local/share/perl5 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl5 /usr/share/perl5 /usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi /usr/local/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl /usr/lib/perl5/site_perl .) at Makefile.PL line 2.
BEGIN failed--compilation aborted at Makefile.PL line 2.
Warning: No success on command[/usr/bin/perl Makefile.PL]
'YAML' not installed, will not store persistent state
SHLOMIF/Config-IniFiles-2.73.tar.gz
/usr/bin/perl Makefile.PL -- NOT OK
Running make test
Make had some problems, won't test
Running make install
Make had some problems, won't install
Could not read '/root/.cpan/build/Config-IniFiles-2.73-lccQBP/META.yml'. Falling back to other methods to determine prerequisites
Failed during this command:
SHLOMIF/Config-IniFiles-2.73.tar.gz : writemakefile NO '/usr/bin/perl Makefile.PL' returned status 512
Si je vais dans la directory /root/.cpan/build/Config-IniFiles-2.73-lccQBP/META.yml et que je fais: Perl Build.PM:
[root@snmpsrv2 Config-IniFiles-2.73-9BxI1a]# perl Build.PL
Can't locate Module/Build.pm in @INC (@INC contains: inc /usr/local/lib/perl5 /usr/local/share/perl5 /usr/lib/perl5 /usr/share/perl5 /usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi /usr/local/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl /usr/lib/perl5/site_perl .) at inc/Test/Run/Builder.pm line 6.
BEGIN failed--compilation aborted at inc/Test/Run/Builder.pm line 6.
Compilation failed in require at Build.PL line 8.
BEGIN failed--compilation aborted at Build.PL line 8.
Me manque-t-il des librairies?
merci,
Seta28