Help for first-timer module install
am 24.08.2006 06:49:16 von BenHi I am using cpan to install a module, but perl seems to have problems
finding the module or recognising it has been installed. Can anyone
provide a quick fix?
cheers,
BenC
cpan> install Net::SSH
Running install for module Net::SSH
Running make for I/IV/IVAN/Net-SSH-0.08.tar.gz
CPAN: LWP::UserAgent loaded ok
Fetching with LWP:
http://cpan.mirrors.ilisys.com.au/authors/id/I/IV/IVAN/Net-S SH-0.08.tar.gz
CPAN: Digest::MD5 loaded ok
Fetching with LWP:
http://cpan.mirrors.ilisys.com.au/authors/id/I/IV/IVAN/CHECK SUMS
Checksum for
/home/ben/.cpan/sources/authors/id/I/IV/IVAN/Net-SSH-0.08.ta r.gz ok
Net-SSH-0.08/
Net-SSH-0.08/MANIFEST
Net-SSH-0.08/Changes
Net-SSH-0.08/MANIFEST.SKIP
Net-SSH-0.08/Makefile.PL
Net-SSH-0.08/README
Net-SSH-0.08/SSH.pm
Net-SSH-0.08/test.pl
CPAN.pm: Going to build I/IV/IVAN/Net-SSH-0.08.tar.gz
Checking if your kit is complete...
Looks good
Writing Makefile for Net::SSH
cp SSH.pm blib/lib/Net/SSH.pm
Manifying blib/man3/Net::SSH.3pm
/usr/bin/make -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-Iblib/lib" "-Iblib/arch" test.pl
1..1
ok 1
/usr/bin/make test -- OK
Running make install
Installing /root/perl/lib/perl5/site_perl/5.8.5/Net/SSH.pm
Installing /root/perl/share/man/man3/Net::SSH.3pm
Writing
/root/perl/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /auto/Net/SSH/.packlist
Appending installation info to
/root/perl/lib/perl5/5.8.5/i386-linux-thread-multi/perllocal .pod
/usr/bin/make install -- OK
[guy@place ~]$ sconfig.pl
Can't locate Net/Telnet/SSH.pm in @INC (@INC contains:
/usr/lib/perl5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/5.8.5
/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4
/usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2
/usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4
/usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2
/usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0
/usr/lib/perl5/vendor_perl .) at /home/ben/bin/sgetfirewallconfig line 5.
BEGIN failed--compilation aborted at /home/ben/bin/sgetfirewallconfig
line 5.
[root@place Net]# slocate Cisco.pm
/home/guy/.cpan/build/Net-Telnet-Cisco-1.10/Cisco.pm
/home/guy/.cpan/build/Net-Telnet-Cisco-1.10/blib/lib/Net/Tel net/Cisco.pm
/root/perl/lib/perl5/site_perl/5.8.5/Net/Telnet/Cisco.pm
[ben@malua ~]$ perl
-I/root/perl/lib/perl5/site_perl/5.8.5/Net/Telnet/Cisco.pm
bin/getfirewallconfig
Can't locate Net/Telnet/Cisco.pm in @INC (@INC contains:
/root/perl/lib/perl5/site_perl/5.8.5/Net/Telnet/Cisco.pm
/usr/lib/perl5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/5.8.5
/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4
/usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2
/usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4
/usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2
/usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0
/usr/lib/perl5/vendor_perl .) at bin/getfirewallconfig line 5.
BEGIN failed--compilation aborted at bin/getfirewallconfig line 5.