-->
  • Recent Articles

    Can't locate Net/Telnet/Cisco.pm in @INC (@INC contains: /usr/local/lib64/perl5

    Error:

    Can't locate Net/Telnet/Cisco.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 /srv/www/htdocs/cacti/scripts/check_router.pl line 9.
    BEGIN failed--compilation aborted at /srv/www/htdocs/cacti/scripts/check_router.pl line 9.

    Resolution:

    Install the Telnet module. How?

    1. Invoke the CPAN shell

    [root@example log]# perl -MCPAN -e shell
    Terminal does not support AddHistory.

    cpan shell -- CPAN exploration and modules installation (v1.9800)
    Enter 'h' for help.

    cpan[1]>


    2. In the CPAN Shell enter the module to install.

    cpan[3]> install Net::Telnet::Cisco
    Running install for module 'Net::Telnet::Cisco'
    Running make for J/JO/JOSHUA/Net-Telnet-Cisco-1.10.tar.gz
    Fetching with HTTP::Tiny:
    http://mirror.checkdomain.de/CPAN/authors/id/J/JO/JOSHUA/Net-Telnet-Cisco-1.10.tar.gz
    Fetching with HTTP::Tiny:
    http://mirror.checkdomain.de/CPAN/authors/id/J/JO/JOSHUA/CHECKSUMS
    Checksum for /root/.cpan/sources/authors/id/J/JO/JOSHUA/Net-Telnet-Cisco-1.10.tar.gz ok
    Scanning cache /root/.cpan/build for sizes
    Checking if your kit is complete...
    Looks good
    Warning: prerequisite Term::ReadKey 2 not found.
    Writing Makefile for Net::Telnet::Cisco
    Could not read metadata file. Falling back to other methods to determine prerequisites
    ---- Unsatisfied dependencies detected during ----
    ----    JOSHUA/Net-Telnet-Cisco-1.10.tar.gz   ----
    ok 1 - use Net::Telnet::Cisco;

    Net::Telnet::Cisco needs to log into a router to
    perform it's full suite of tests. To log in, we
    need a test router, a login, a password, an
    optional enable password, and an optional
    SecurID/TACACS PASSCODE.

    To skip these tests, hit "return".

    No comments