CPAN for the first time
- From: Tim.Gallagher@xxxxxxxxxx (Tim Gallagher)
- Date: Tue, 28 Feb 2006 11:59:13 -0500
I have been developing Perl programs on Windows computers for a few
years now, now I have to develop scripts on Linux computers now. I hate
to say it but I have never really done any Perl/Linux development, just
shell scripting. I am having troubles getting Perl modules installed on
my Linux box using Cpan. So the module that I need is Net::SSH::Perl,
so I go "cpan> install Net::SSH::Perl" and it says that everything
installed correctly. "Net::SSH::Perl is up to date." So I then create a
script
#!/usr/bin/perl
use Net::SSH::Perl;
my $host = "127.0.0.1";
my $user = "testboy";
my $pass = "123456";
my $ssh = Net::SSH::Perl->new($host);
$ssh->login($user, $pass);
my($stdout, $stderr, $exit) = $ssh->cmd($cmd);
and I get the error
Can't locate Crypt/DH.pm in @INC (@INC contains: /etc/perl
/usr/local/lib/perl/5.8.7 /usr/local/share/perl/5.8.7 /usr/lib/perl5
/usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8
/usr/local/lib/site_perl .) at
/usr/local/share/perl/5.8.7/Net/SSH/Perl/Kex/DH1.pm line 13, <GEN0> line
1.
BEGIN failed--compilation aborted at
/usr/local/share/perl/5.8.7/Net/SSH/Perl/Kex/DH1.pm line 13, <GEN0> line
1.
Compilation failed in require at
/usr/local/share/perl/5.8.7/Net/SSH/Perl/Kex.pm line 6, <GEN0> line 1.
BEGIN failed--compilation aborted at
/usr/local/share/perl/5.8.7/Net/SSH/Perl/Kex.pm line 6, <GEN0> line 1.
Compilation failed in require at
/usr/local/share/perl/5.8.7/Net/SSH/Perl/SSH2.pm line 6, <GEN0> line 1.
BEGIN failed--compilation aborted at
/usr/local/share/perl/5.8.7/Net/SSH/Perl/SSH2.pm line 6, <GEN0> line 1.
Compilation failed in require at
/usr/local/share/perl/5.8.7/Net/SSH/Perl.pm line 51, <GEN0> line 1.
This error looks that there is a dependency problem and I thought cpan
takes care of dependency problems like Active States PPM.
What am I doing wrong??
Thanks,
Tim
.
- Follow-Ups:
- Re: CPAN for the first time
- From: Tom Phoenix
- Re: CPAN for the first time
- Prev by Date: Re: Help: Math::Pari won't install
- Next by Date: Re: the way to get current index of an array
- Previous by thread: separate input
- Next by thread: Re: CPAN for the first time
- Index(es):