Jul 28, 2013, 1:39 PM
Post #3 of 3
You probably don't have Net::SSH::Perl installed on your system. Since the module you used could not be found in the standard directory of Perl. I used the word 'probably' because you may have the module installed in another directory, and as such you need to specify such either on the CLI using "-I path_to_the_directory" or
Re: [forumrhb] How to install Net::SSH perl module
[In reply to]
in your script.
use lib 'path_to_the_directory';
However, if this module is not installed on your system then you could do like so: From your CLI
Checking the module on https://metacpan.org/module/Net::SSH::Perl I see that it has a lot of dependencies, so it might not be very funny using the above method to install.
perl -MCPAN -eshell
cpan> install Net::SSH::Perl
So, if you have CPANMINUS installed on your system, then you could then just do: From the command line interface
Then you can go to sleep because every thing just works fine.
For cpanminus that takes all the pain away see https://metacpan.org/module/App::cpanminus.
(This post was edited by 2teez on Jul 28, 2013, 1:41 PM)