Perl error
Posted: Mon Sep 30, 2013 4:38 am
I was trying to use the check_ifoperstatus, but have the folowing error
Im trying to install Net::SNMP on Ubuntu Server 12.04 with the following command:
Also i was trying this
"cpan> install Net::SNMP" and "install Bundle::CPAN"
And have the following errors:
And that line is use Net::SNMP;root@mpnagios:/usr/local/nagios/libexec# ./check_ifoperstatus -h
Can't locate Net/SNMP.pm in @INC (@INC contains: /usr/local/nagios/libexec /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at ./check_ifoperstatus line 40.
BEGIN failed--compilation aborted at ./check_ifoperstatus line 40.
root@mpnagios:/usr/local/nagios/libexec#
Im trying to install Net::SNMP on Ubuntu Server 12.04 with the following command:
Code: Select all
perl -MCPAN -e 'install Net::SNMP'"cpan> install Net::SNMP" and "install Bundle::CPAN"
And have the following errors:
Going to read '/root/.cpan/sources/authors/01mailrc.txt.gz'
DONE
Fetching with HTTP::Tiny:
http://artfiles.org/cpan.org/modules/02 ... ils.txt.gz
Going to read '/root/.cpan/sources/modules/02packages.details.txt.gz'
Warning: Your /root/.cpan/sources/modules/02packages.details.txt.gz does not contain a Line-Count header.
Please check the validity of the index file by comparing it to more
than one CPAN mirror. I'll continue but problems seem likely to
happen.
Warning: Your /root/.cpan/sources/modules/02packages.details.txt.gz does not contain a Last-Updated header.
Please check the validity of the index file by comparing it to more
than one CPAN mirror. I'll continue but problems seem likely to
happen.
Could not split line["<html>"]
Could not split line["\cI<head>"]
.Could not split line["\cI\cI"]
Could not split line[""]
Giving up parsing your /root/.cpan/sources/modules/02packages.details.txt.gz, too many errors
root@start:/usr/local/nagios/libexec# aptitude -y install snmp
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.