Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: Quade on February 16, 2002, 08:57:50 PM

Title: Perl module for FTP
Post by: Quade on February 16, 2002, 08:57:50 PM
I was attempting to write an FTP script for my site, when I learned that the Net/FTP perl module is not installed on my SME server (I'm running v.5.0.3). As a result, I receive the following message in my error_log :

Can't locate Net/FTP.pm in @INC (@INC contains: /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl .) at /home/e-smith/files/primary/cgi-bin/pongtest.cgi line 3.


Does anyone have any advice as to how to install this in SME? My usual Perl resources turned out to be of no use this time.

TIA,
Quade
Title: Re: Perl module for FTP
Post by: p kidd on February 17, 2002, 07:22:02 AM
you can install an rpm of the perl module  Net::FTP  (cpan.org for the module, rpm -ivh ....rpm to install I believe but check the man page (not in SME 5))
Title: Re: Perl module for FTP
Post by: Quade on February 17, 2002, 10:28:24 AM
Well, I searched all over CPAN's site, and I found the modules I need (I think) but no RPM -- just a tarball of .pm files. I'll keep looking, since I'm afraid of screwing things up royally if I just start to copy files around and make references to them in config files...  :)

Meanwhile, does anyone else have a location for such an RPM? I've also checked Redhat's site, with no luck.

TIA
Title: Re: Perl module for FTP
Post by: robert on February 17, 2002, 04:20:50 PM
The module is included in the libnet RPM, which can be found on rpmfind.net.