Yesterday I installed the Net::SSH::Perl module locally so as to not affect the Perl installation on my server. I was able to get it installed without any errors but I am having an issue when i run my perl script.

In the top of the script I added two line:

Code

use lib '/scripts/perl/localmodule/Net-SSH-Perl/lib/perl5/site_perl/5.8.5/'; #script looking for Net/SSH/Perl.pm use Net::SSH::Perl;

I am just doing a simple test to see if this works so the code of the body is:

I am really having trouble getting CPAN to work because of some permission error.

Now what????

I got this issue this morning; "insufficient permissions" the .cpan directory tree is protected same as the user I am running as.

So I decided to blow away .cpan and try again. Only to hit the exact same error.

I am trying to install Net::SSH::Perl in CPAN. I am using PREFIX= for makepl_arg, so that the module will be installed locally for Makefile.pl

Here is my error. Can someone please help me get threw this?

/usr/bin/perl -Iinc Makefile.PL --config= --installdeps=Class::ErrorHandler,0,Crypt::DES_EDE3,0 *** Installing dependencies... *** You are not allowed to write to the directory '/home/user/.cpan/sources'; the installation may fail due to insufficient permissions.

When I try with sudo that fails too.

Sorry, user is not allowed to execute '/usr/bin/perl Makefile.PL --config= --installdeps=Class::ErrorHandler,0,Crypt::DES_EDE3,0' as root on host