Abinaya has asked for the wisdom of the Perl Monks concerning the following question:

As per our user request we are trying to build Net::SFTP as RPM and we are using RedHat 6 Linux Machine, please find below details of our machine:

[root@perl-module ~]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 6.9 (Santiago) [root@perl-module ~]# perl -V Summary of my perl5 (revision 5 version 14 subversion 2) configuration +:

We could see there lot of dependencies for this Net::SFTP. So tried to install using CPAN module like below but couldn't install on specific customized path.  cpan Net::SFTP Can anyone help me to install Net::SFTP using CPAN on specific path.

Replies are listed 'Best First'.
Re: Installing perl module using CPAN
by thanos1983 (Parson) on Jul 31, 2018 at 14:02 UTC

    Hello Abinaya,

    Welcome to the Monastery. Read this article CentOS 6 Repoforge (RPMforge) i386 perl-Net-SFTP-0.10-1.el6.rf.noarch.rpm it contains all the information that you need.

    If in any case if there is an installation problem with the procedure please add more information where it is failing and we can take it from there.

    Hope this helps, BR.

    Seeking for Perl wisdom...on the process of learning...not there...yet!
Re: Installing perl module into specific path using CPAN
by hippo (Archbishop) on Aug 02, 2018 at 10:27 UTC
    couldn't install on specific customized path
    export PERL_MM_OPT='INSTALL_BASE=/your/own/path' PERL_MB_OPT='--instal +l_base "/your/own/path"'

    See the docs for ExtUtils::MakeMaker and Module::Build for details of these environment variables.