0
votes

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.

1
NET::SFTP @choroba - AJ_NOVICE
@AJ_NOVICE: Please use capital letters correctly. In this case it's clear that you mean Net::SFTP, but often it is not. - Borodin

1 Answers

0
votes

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