Help for first-timer module install

Help for first-timer module install

am 24.08.2006 06:49:16 von Ben

Hi 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.

Re: Help for first-timer module install

am 24.08.2006 07:10:55 von John Bokma

Ben wrote:

> cpan> install Net::SSH

[..]

> [guy@place ~]$ sconfig.pl
> Can't locate Net/Telnet/SSH.pm in @INC (@INC contains:

Yup, you installed Net::SSH, not Net::Telnet::SSH

> [ben@malua ~]$ perl
> -I/root/perl/lib/perl5/site_perl/5.8.5/Net/Telnet/Cisco.pm

perl -h

[...]
-Idirectory specify @INC/#include directory (several -I's allowed)

^^^^^^^^^^ (!)


--
John Experienced Perl programmer: http://castleamber.com/

Perl help, tutorials, and examples: http://johnbokma.com/perl/

Re: Help for first-timer module install

am 24.08.2006 09:14:52 von mumia.w.18.spam+nospam.usenet

On 08/23/2006 11:49 PM, Ben wrote:
> Hi I am using cpan to install a module, but perl seems to have problems
> finding the module or recognising it has been installed.
> [...]
> 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
> [...]

Why did you install into /root? Very few normal processes have
access to /root. Perhaps /usr/local or /usr/local/lib would be
better places to install.