Reputation: 321
I am looking to implement an SFTP module for my Linux log archival and need some help to install the
Net::SFTP
module.
I am using a RHEL7 system which does not have internet access or an active yum repository and also do not have
CPAN
installed.
I tried to build the module but got the below error
Net-SFTP-Foreign-1.87]$ perl Makefile.PL
Can't locate ExtUtils/MakeMaker.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at Makefile.PL line 4. BEGIN failed--compilation aborted at Makefile.PL line 4.
Upvotes: 0
Views: 1482
Reputation: 126722
You should take a look at the
CPAN::Mini
module. It allows you to download a snapshot of the CPAN repository which you can copy to your isolated system and use to build modules as normal
Upvotes: 0