Home > Archive > PERL Beginners > January 2006 > Net::SSH::W32Perl
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| Mazhar 2006-01-26, 7:55 am |
| Hi Folks,
I have downloaded the tar.gz module from CPAN to ssh a remote unix
machine. After the same i run the >>perl makefile.pl and below was the
output of the command
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++
Warning: prerequisite Convert::ASCII::Armour 1.4 not found.
Warning: prerequisite Data::Buffer 0.04 not found.
Warning: prerequisite Digest::BubbleBabble 0.01 not found.
Warning: prerequisite IO::Select::Trap 0.02 not found.
Warning: prerequisite Net::SSH::Perl 1.23 not found.
Writing Makefile for Net::SSH::W32Perl
++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
After the above i wrote the below code
++++++++++++++++++++++++++++++++++++++++
use Net::SSH::W32Perl;
my $host = 'xxx.xxx.xxx.xxx';
my $ssh = new Net::SSH::W32Perl($host, [options]);
$ssh->login('****', '****');
my ($out, $err, $exit) = $ssh->cmd('cat', 'Hello Net::SSH::W32Perl User!');
print $out;
++++++++++++++++++++++++++++++++++++++++
++
When i run the above code i get the below error
-----------------------------------------------------------------------------------------------------------------------
Can't locate Net/SSH/Perl.pm in @INC (@INC contains: D:/Perl/lib
D:/Perl/site/li
b .) at D:/Perl/lib/Net/SSH/W32Perl.pm line 8.
BEGIN failed--compilation aborted at D:/Perl/lib/Net/SSH/W32Perl.pm line 8.
Compilation failed in require at sshtest.pl line 5.
BEGIN failed--compilation aborted at sshtest.pl line 5.
-----------------------------------------------------------------------------------------------------------------------
Thanks in Advance
Regards
Mazhar
| |
| Paul Lalli 2006-01-26, 6:57 pm |
| Mazhar wrote:
> I have downloaded the tar.gz module from CPAN to ssh a remote unix
> machine. After the same i run the >>perl makefile.pl and below was the
> output of the command
> ++++++++++++++++++++++++++++++++++++++++
++++++++++++++++
> Warning: prerequisite Convert::ASCII::Armour 1.4 not found.
> Warning: prerequisite Data::Buffer 0.04 not found.
> Warning: prerequisite Digest::BubbleBabble 0.01 not found.
> Warning: prerequisite IO::Select::Trap 0.02 not found.
> Warning: prerequisite Net::SSH::Perl 1.23 not found.
> Writing Makefile for Net::SSH::W32Perl
> ++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
None of this installs the module. The 'perl Makefile.PL' is the FIRST
step towards installing the module, not the last. After you'v e done
that, you need to run
make
make test
make install
Of course, given that all those prerequisites are not found, you are
not likely to be able to install successfully. You need to install
each of those modules first.
When you unzipped the .tar.gz, there was a README file that was
produced. Did you bother *reading* the README? If you had, you would
have seen:
INSTALLATION
perl Makefile.PL
nmake
nmake test
nmake install
NOTE: I've made ppms (binaries) available for this and most of it's
required modules at http://www.soulcage.net/ppds/. The following
command should install everything you need.
"ppm install --location=http://www.soulcage.net/ppds
Net::SSH::W32Perl"
I would suggest trying that.
Paul Lalli
| |
| Chas Owens 2006-01-26, 6:57 pm |
| On 1/26/06, Mazhar <syedmazhar.hasan@gmail.com> wrote:
> Hi Folks,
> I have downloaded the tar.gz module from CPAN to ssh a remote uni=
x
> machine. After the same i run the >>perl makefile.pl and below was the
> output of the command
> ++++++++++++++++++++++++++++++++++++++++
++++++++++++++++
> Warning: prerequisite Convert::ASCII::Armour 1.4 not found.
> Warning: prerequisite Data::Buffer 0.04 not found.
> Warning: prerequisite Digest::BubbleBabble 0.01 not found.
> Warning: prerequisite IO::Select::Trap 0.02 not found.
> Warning: prerequisite Net::SSH::Perl 1.23 not found.
> Writing Makefile for Net::SSH::W32Perl
> ++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
snip
The proper invocation to get a downloaded Perl module installed is:
perl Makefile.PL
make
make test
make install
You must also stop and satisfy and errors or warnings you recieve. In
this case you do not have modules installed that are necessary for
Net::SSH::W32Perl to work. In general you are better served by
running
perl -MCPAN -e install Net::SSH::W32Perl
Which will download, compile, test, and install all modules required
by Net::SSH::W32Perl or (if you are using Activestate Perl) running
ppm install Net::SSH::W32Perl
Which should download and install precompiled versions of the modules.
|
|
|
|
|