Koozali.org: home of the SME Server

Perl module for FTP

Quade

Perl module for FTP
« 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

p kidd

Re: Perl module for FTP
« Reply #1 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))

Quade

Re: Perl module for FTP
« Reply #2 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

robert

Re: Perl module for FTP
« Reply #3 on: February 17, 2002, 04:20:50 PM »
The module is included in the libnet RPM, which can be found on rpmfind.net.