CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
using Net::SFTP::Foreign in Linux

 



sanilkp
New User

Oct 4, 2010, 6:23 AM

Post #1 of 2 (628 views)
using Net::SFTP::Foreign in Linux Can't Post

Can anyone please help me using Net::SFTP:Foreign in linux.


Especially how to successfully install Net::SFTP::Foreign and all its dependant modules

so that I can successfully run a basic script using Net::SFTP::Foreign?


AnkurMundhada
Novice

Oct 7, 2010, 10:17 PM

Post #2 of 2 (613 views)
Re: [sanilkp] using Net::SFTP::Foreign in Linux [In reply to] Can't Post

Hi ,

On Linux you can you download the module form the CPAN as,

wget http://search.cpan.org/CPAN/authors/id/S/SA/SALVA/Net-SFTP-Foreign-1.62.tar.gz

Then follow the step below,

A. DECOMPRESS



Decompress the file with gzip -d yourmodule.tar.gz
You can get gzip from ftp://prep.ai.mit.edu/pub/gnu.


B. UNPACK

Unpack the result with tar -xof yourmodule.tar


C. BUILD

Go into the newly-created directory and type:

perl Makefile.PL
make
make test


D. INSTALL

While still in that directory, type:

make install

Make sure you have the appropriate permissions to install the module in your Perl 5 library directory. Often, you'll need to be root.

That's all you need to do on Unix systems with dynamic linking. Most Unix systems have dynamic linking -- if yours doesn't, or if for another reason you have a statically-linked perl, and the module requires compilation, you'll need to build a new Perl binary that includes the module. Again, you'll probably need to be root.

Thanks

Ankur

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives