Perl – Whats does the Perl error “Can’t locate Net/SSH/Perl.pm” mean

perlssh

I am running a perl script that uses SSH, but it prints the following error:

Can't locate Net/SSH/Perl.pm in @INC (@INC contains: /etc/perl
/usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5
/usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10
/usr/local/lib/site_perl .) at newone.pl line 3. BEGIN
failed–compilation aborted at newone.pl line 3.

Perl can't seem to locate Net/SSH/Perl.pm. Why can't it find it and how do I install it?

Best Answer

Your code is fine, although I haven't checked it as the error is due to a missing perl module.

What's the easiest way to install a missing Perl module?

Related Topic