Help on installing Net::SSH::Perl from CPAN!

A

Andy

Hi, All

I am trying to install CPAN module of Net::SSH::perl on Unix using:
perl -MCPAN -e "install Net::SSH::perl"

However, the installation was interrupted for some error.

Error message is like (excerpt):

##############################################################################

Can't locate auto/Digest/MD5/new.al in @INC (@INC contains:
/usr/local/bin) at /m/machine/perl/lib/5.8.7/CPAN.pm line 4344

###############################################################################

In order to fix this problem, I also installed Digest::MD5. But, then
when I come back to install Net::SSH::perl, the same error message
keeps rising up, and aborts my attempt to install it.

I would greatly appreciate your help on how to solve this problem!

Andy
 
S

Sam

Andy said:
Hi, All

I am trying to install CPAN module of Net::SSH::perl on Unix using:


However, the installation was interrupted for some error.

Error message is like (excerpt):

##############################################################################

Can't locate auto/Digest/MD5/new.al in @INC (@INC contains:
/usr/local/bin) at /m/machine/perl/lib/5.8.7/CPAN.pm line 4344

###############################################################################

In order to fix this problem, I also installed Digest::MD5. But, then
when I come back to install Net::SSH::perl, the same error message
keeps rising up, and aborts my attempt to install it.

I would greatly appreciate your help on how to solve this problem!

Andy
CPAN by nature will find all dependencies and install those as well
(prompting you along the way).

Here's a few things you should check

1. you should be sure that the installation of Digest::MD5 was successful.

2. make sure that the installed module is in your perl search path (@INC)
(or install path if you're installing locally).

3. the problem may not be with the modules at all. Check you log for other
warning that occurred before the message you pasted above. There is probably
something subtle in the logs from the test phase of the installation. Maybe
gcc failed?
 
A

Andy

Sam 写é“:
3. the problem may not be with the modules at all. Check you log for other
warning that occurred before the message you pasted above. There is probably
something subtle in the logs from the test phase of the installation. Maybe
gcc failed?

Below is the complete output after I run "perl -MCPAN -e "install
Net::SSH::perl"".

Going to read /usb//.cpan/sources/authors/01mailrc.txt.gz
Going to read /usb//.cpan/sources/modules/02packages.details.txt.gz
Database was generated on Tue, 23 Aug 2005 12:00:12 GMT
CPAN: HTTP::Date loaded ok
Going to read /usb//.cpan/sources/modules/03modlist.data.gz
Running install for module Net::SSH::perl
Running make for D/DB/DBROBINS/Net-SSH-Perl-1.28.tar.gz

CPAN: MD5 security checks disabled because Digest::MD5 not installed.
Please consider installing the Digest::MD5 module.

Scanning cache /usb//.cpan/build for sizes
x Net-SSH-Perl-1.28, 0 bytes, 0 tape blocks
x Net-SSH-Perl-1.28/lib, 0 bytes, 0 tape blocks
x Net-SSH-Perl-1.28/lib/Net, 0 bytes, 0 tape blocks
x Net-SSH-Perl-1.28/lib/Net/SSH, 0 bytes, 0 tape blocks
x Net-SSH-Perl-1.28/lib/Net/SSH/Perl, 0 bytes, 0 tape blocks
x Net-SSH-Perl-1.28/lib/Net/SSH/Perl/Auth, 0 bytes, 0 tape blocks
x Net-SSH-Perl-1.28/lib/Net/SSH/Perl/Auth/KeyboardInt.pm, 3402 bytes, 7
tape blocks
x Net-SSH-Perl-1.28/lib/Net/SSH/Perl/Auth/Rhosts.pm, 2773 bytes, 6 tape
blocks
x Net-SSH-Perl-1.28/lib/Net/SSH/Perl/Auth/Password.pm, 4250 bytes, 9
tape blocks
x Net-SSH-Perl-1.28/lib/Net/SSH/Perl/Auth/PublicKey.pm, 7466 bytes, 15
tape blocks
x Net-SSH-Perl-1.28/lib/Net/SSH/Perl/Auth/RSA.pm, 7739 bytes, 16 tape
blocks
x Net-SSH-Perl-1.28/lib/Net/SSH/Perl/Auth/Rhosts_RSA.pm, 4839 bytes, 10
tape blocks
x Net-SSH-Perl-1.28/lib/Net/SSH/Perl/Auth/ChallengeResponse.pm, 1997
bytes, 4 tape blocks
x Net-SSH-Perl-1.28/lib/Net/SSH/Perl/Agent.pm, 8937 bytes, 18 tape
blocks
x Net-SSH-Perl-1.28/lib/Net/SSH/Perl/Util, 0 bytes, 0 tape blocks
x Net-SSH-Perl-1.28/lib/Net/SSH/Perl/Util/RSA.pm, 2223 bytes, 5 tape
blocks
x Net-SSH-Perl-1.28/lib/Net/SSH/Perl/Util/Authfile.pm, 3596 bytes, 8
tape blocks
x Net-SSH-Perl-1.28/lib/Net/SSH/Perl/Util/SSH1MP.pm, 825 bytes, 2 tape
blocks
x Net-SSH-Perl-1.28/lib/Net/SSH/Perl/Util/Hosts.pm, 1703 bytes, 4 tape
blocks
x Net-SSH-Perl-1.28/lib/Net/SSH/Perl/Util/SSH1Misc.pm, 194 bytes, 1
tape blocks
x Net-SSH-Perl-1.28/lib/Net/SSH/Perl/Util/Term.pm, 755 bytes, 2 tape
blocks
x Net-SSH-Perl-1.28/lib/Net/SSH/Perl/Util/SSH2MP.pm, 936 bytes, 2 tape
blocks
x Net-SSH-Perl-1.28/lib/Net/SSH/Perl/Cipher, 0 bytes, 0 tape blocks
x Net-SSH-Perl-1.28/lib/Net/SSH/Perl/Cipher/IDEA.pm, 1295 bytes, 3 tape
blocks
x Net-SSH-Perl-1.28/lib/Net/SSH/Perl/Cipher/CFB.pm, 1693 bytes, 4 tape
blocks
x Net-SSH-Perl-1.28/lib/Net/SSH/Perl/Cipher/Blowfish.pm, 2990 bytes, 6
tape blocks
x Net-SSH-Perl-1.28/lib/Net/SSH/Perl/Cipher/RC4.pm, 1983 bytes, 4 tape
blocks
x Net-SSH-Perl-1.28/lib/Net/SSH/Perl/Cipher/CBC.pm, 1645 bytes, 4 tape
blocks
x Net-SSH-Perl-1.28/lib/Net/SSH/Perl/Cipher/DES3.pm, 3696 bytes, 8 tape
blocks
x Net-SSH-Perl-1.28/lib/Net/SSH/Perl/Cipher/DES.pm, 1286 bytes, 3 tape
blocks
x Net-SSH-Perl-1.28/lib/Net/SSH/Perl/Handle, 0 bytes, 0 tape blocks
x Net-SSH-Perl-1.28/lib/Net/SSH/Perl/Handle/SSH2.pm, 1600 bytes, 4 tape
blocks
x Net-SSH-Perl-1.28/lib/Net/SSH/Perl/Handle/SSH1.pm, 1749 bytes, 4 tape
blocks
x Net-SSH-Perl-1.28/lib/Net/SSH/Perl/Comp, 0 bytes, 0 tape blocks
x Net-SSH-Perl-1.28/lib/Net/SSH/Perl/Comp/Zlib.pm, 2110 bytes, 5 tape
blocks
x Net-SSH-Perl-1.28/lib/Net/SSH/Perl/Mac.pm, 3815 bytes, 8 tape blocks
x Net-SSH-Perl-1.28/lib/Net/SSH/Perl/SSH2.pm, 10210 bytes, 20 tape
blocks
x Net-SSH-Perl-1.28/lib/Net/SSH/Perl/Cipher.pm, 5976 bytes, 12 tape
blocks
x Net-SSH-Perl-1.28/lib/Net/SSH/Perl/Config.pm, 8198 bytes, 17 tape
blocks
x Net-SSH-Perl-1.28/lib/Net/SSH/Perl/Util.pm, 9997 bytes, 20 tape
blocks
x Net-SSH-Perl-1.28/lib/Net/SSH/Perl/Key, 0 bytes, 0 tape blocks
x Net-SSH-Perl-1.28/lib/Net/SSH/Perl/Key/RSA.pm, 7357 bytes, 15 tape
blocks
x Net-SSH-Perl-1.28/lib/Net/SSH/Perl/Key/RSA1.pm, 3222 bytes, 7 tape
blocks
x Net-SSH-Perl-1.28/lib/Net/SSH/Perl/Key/DSA.pm, 5472 bytes, 11 tape
blocks
x Net-SSH-Perl-1.28/lib/Net/SSH/Perl/AuthMgr.pm, 4889 bytes, 10 tape
blocks
x Net-SSH-Perl-1.28/lib/Net/SSH/Perl/Auth.pm, 5829 bytes, 12 tape
blocks
x Net-SSH-Perl-1.28/lib/Net/SSH/Perl/Comp.pm, 3227 bytes, 7 tape blocks
x Net-SSH-Perl-1.28/lib/Net/SSH/Perl/Kex.pm, 9381 bytes, 19 tape blocks
x Net-SSH-Perl-1.28/lib/Net/SSH/Perl/ChannelMgr.pm, 6083 bytes, 12 tape
blocks
x Net-SSH-Perl-1.28/lib/Net/SSH/Perl/Kex, 0 bytes, 0 tape blocks
x Net-SSH-Perl-1.28/lib/Net/SSH/Perl/Kex/DH1.pm, 4855 bytes, 10 tape
blocks
x Net-SSH-Perl-1.28/lib/Net/SSH/Perl/Key.pm, 7440 bytes, 15 tape blocks
x Net-SSH-Perl-1.28/lib/Net/SSH/Perl/Buffer.pm, 9724 bytes, 19 tape
blocks
x Net-SSH-Perl-1.28/lib/Net/SSH/Perl/Constants.pm, 8398 bytes, 17 tape
blocks
x Net-SSH-Perl-1.28/lib/Net/SSH/Perl/Channel.pm, 9225 bytes, 19 tape
blocks
x Net-SSH-Perl-1.28/lib/Net/SSH/Perl/SSH1.pm, 14980 bytes, 30 tape
blocks
x Net-SSH-Perl-1.28/lib/Net/SSH/Perl/Packet.pm, 13608 bytes, 27 tape
blocks
x Net-SSH-Perl-1.28/lib/Net/SSH/Perl.pm, 30657 bytes, 60 tape blocks
x Net-SSH-Perl-1.28/t, 0 bytes, 0 tape blocks
x Net-SSH-Perl-1.28/t/06-circular.t, 684 bytes, 2 tape blocks
x Net-SSH-Perl-1.28/t/04-config.t, 3710 bytes, 8 tape blocks
x Net-SSH-Perl-1.28/t/config, 133 bytes, 1 tape blocks
x Net-SSH-Perl-1.28/t/03-packet.t, 3583 bytes, 7 tape blocks
x Net-SSH-Perl-1.28/t/05-cipher.t, 2072 bytes, 5 tape blocks
x Net-SSH-Perl-1.28/t/01-compile.t, 83 bytes, 1 tape blocks
x Net-SSH-Perl-1.28/t/02-buffer.t, 1515 bytes, 3 tape blocks
x Net-SSH-Perl-1.28/t/test-common.pl, 673 bytes, 2 tape blocks
x Net-SSH-Perl-1.28/Changes, 21082 bytes, 42 tape blocks
x Net-SSH-Perl-1.28/eg, 0 bytes, 0 tape blocks
x Net-SSH-Perl-1.28/eg/pssh, 3954 bytes, 8 tape blocks
x Net-SSH-Perl-1.28/eg/cmd.pl, 1234 bytes, 3 tape blocks
x Net-SSH-Perl-1.28/eg/pssh-keygen, 8385 bytes, 17 tape blocks
x Net-SSH-Perl-1.28/eg/pscp, 1297 bytes, 3 tape blocks
x Net-SSH-Perl-1.28/eg/remoteinteract2.pl, 3213 bytes, 7 tape blocks
x Net-SSH-Perl-1.28/eg/remoteinteract.pl, 3429 bytes, 7 tape blocks
x Net-SSH-Perl-1.28/MANIFEST, 1676 bytes, 4 tape blocks
x Net-SSH-Perl-1.28/README, 2750 bytes, 6 tape blocks
x Net-SSH-Perl-1.28/LICENSE, 20545 bytes, 41 tape blocks
x Net-SSH-Perl-1.28/META.yml, 927 bytes, 2 tape blocks
x Net-SSH-Perl-1.28/MANIFEST.SKIP, 179 bytes, 1 tape blocks
x Net-SSH-Perl-1.28/ToDo, 731 bytes, 2 tape blocks
x Net-SSH-Perl-1.28/Makefile.PL, 3398 bytes, 7 tape blocks
Removing previously used /usb//.cpan/build/Net-SSH-Perl-1.28

CPAN.pm: Going to build D/DB/DBROBINS/Net-SSH-Perl-1.28.tar.gz

This is Net::SSH::perl.

As of version 1.00, Net::SSH::perl supports both the SSH1 and
SSH2 protocols natively. The two protocols have different
module prerequisitives, so you need to decide which protocol(s)
you plan to use. If you use one or the other, only those modules
for your chosen protocol will be installed; if you choose both,
all of the supporting modules will be installed. Please choose
the protocols you'd like to use from the following list ("Both"
is the default).

[1] SSH1
[2] SSH2
[3] Both SSH1 and SSH2

Which protocol(s) do you plan to use? [3]
Some of the Net::SSH::perl ciphers depend on a Crypt:: module from
CPAN. You may already have the necessary modules installed, in which
case you don't need to bother with this step. Otherwise you'll need
to install at least one cipher to use Net::SSH::perl. Please choose
at least one from the following list (Crypt::IDEA is the default).

[1] IDEA
[2] DES
[3] DES3
[4] Blowfish
[5] RC4

Enter your choices, separated by spaces: [1]
Checking for optional modules

Digest::BubbleBabble is required if you want to generate bubble babble
key fingerprints with pssh-keygen.

Would you like to install it? (y/n) [y]
Crypt::RSA is required if you wish to use the ssh-rsa public
key algorithm (ssh-dss is used by default).

Would you like to install it? (y/n) [y]
Checking if your kit is complete...
Looks good
Writing Makefile for Net::SSH::perl
---- Unsatisfied dependencies detected during
[D/DB/DBROBINS/Net-SSH-Perl-1.28.tar.gz] -----
Crypt::DSA
Digest::SHA1
Convert::pEM
String::CRC32
Crypt::RSA
Math::pari
Crypt::IDEA
Digest::HMAC_SHA1
Digest::HMAC_MD5
Digest::BubbleBabble
Crypt::DH
Math::GMP
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes] Running make test
Delayed until after prerequisites
Running make install
Delayed until after prerequisites
Running install for module Crypt::DSA
Running make for B/BT/BTROTT/Crypt-DSA-0.13.tar.gz

Can't locate auto/Digest/MD5/new.al in @INC (@INC contains:
/usr/local/bin) at /m/machine/perl/lib/5.8.7/CPAN.pm line 4344

Andy
 
A

Andy

Sam 写é“:
2. make sure that the installed module is in your perl search path (@INC)
(or install path if you're installing locally).

How can I put the installed module on my perl search path (@INC) as I
am using CPAN.pm to automate the whole download and install process?

I am running it like:
perl -MCPAN -e "install Net::SSH::perl"

How can I specify which path I would like this new module to install?

This is the first time I install CPAN module. Therefore, sorry about my
ignorance.

Thanks for help.

Andy
 
S

Sam

you can specify the install path with the environment variable PERL5LIB.
in csh teh command would be
setenv PERL5LIB <your path>



Sam ??:
2. make sure that the installed module is in your perl search path (@INC)
(or install path if you're installing locally).

How can I put the installed module on my perl search path (@INC) as I
am using CPAN.pm to automate the whole download and install process?

I am running it like:
perl -MCPAN -e "install Net::SSH::perl"

How can I specify which path I would like this new module to install?

This is the first time I install CPAN module. Therefore, sorry about my
ignorance.

Thanks for help.

Andy
 
A

Andy

Sam 写é“:
you can specify the install path with the environment variable PERL5LIB.
in csh teh command would be
setenv PERL5LIB <your path>

Well, I have already specified the install path with PERL5LIB
environment variable in my shell configuration file. Indeed, I have
specified multiple paths. Which path will CPAN.pm choose to install the
new module?

Andy
 
A

Andy

Sam 写é“:
you can specify the install path with the environment variable PERL5LIB.
in csh teh command would be
setenv PERL5LIB <your path>

Well, I have already specified the install path with PERL5LIB
environment variable in my shell configuration file. Indeed, I have
specified multiple paths. Which path will CPAN.pm choose to install the
new module?

Thanks,

Andy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,736
Latest member
AdolphBig6

Latest Threads

Top