Don't ask to ask, just ask | |
PerlMonks |
Re: Not able to use Net::SFTP module.by vinoth.ree (Monsignor) |
on Apr 29, 2014 at 06:40 UTC ( [id://1084255]=note: print w/replies, xml ) | Need Help?? |
Hi,
If you downloaded .tar.gz file from cpan, then you need to download the dependencies also and need to install manually. The simplest way to get Perl modules installed is to use the CPAN module itself. If you are the system administrator and want to install the module system-wide, you'll need to switch to your root user. To fire up the CPAN module, just get to your command line and run this: perl -MCPAN -e shell If this is the first time you've run CPAN, it's going to ask you a series of questions - in most cases the default answer is fine. Once you find yourself staring at the cpan> command prompt, installing a module is as easy as, cpan> install Net::SFTP Update: Sorry to feed you with additional info, I faced the same problem of installing dependencies so, i am sharing that.If you use cpancommand, it constantly confirms installing dependencies. While this is an annoyance if you have to install a module with many dependencies, you can tell CPAN to automatically confirm the installation of dependencies. To do this, simply bring up a CPAN shell: perl -MCPAN -e shellRun these two commands in the CPAN shell:
Now, exit the CPAN shell, start the CPAN shell, and try to install a module that you need. All dependencies will be automatically confirmed, downloaded and installed. The first line sets your dependency policy to follow rather than ask (default). The second line tells CPAN to write the changes to your user’s CPAN configuration file to make them permanent All is well
In Section
Seekers of Perl Wisdom
|
|