michellem has asked for the wisdom of the Perl Monks concerning the following question:
Next problem: I'm adding some ftp functionality to a script, using Net::FTP. I already had Net::FTP installed, and it's the most current version. When I call the module (use Net::FTP;) I get the following error:
Can't locate NET/FTP.pm in @INC (@INC contains: /usr/lib/perl5/5.6.1/i686-linux /usr/lib/perl5/5.6.1 /usr/lib/perl5/site_perl/5.6.1/i686-linux /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl) at /var/www/cgi-bin/xicontrol.cgi line 29. BEGIN failed--compilation aborted at /var/www/cgi-bin/xicontrol.cgi line 29.
The problem is, Net/FTP.pm is in two of those directories. Doing a locate FTP.pm yeilds:
/usr/lib/perl5/site_perl/5.6.0/Net/FTP.pm
/usr/lib/perl5/site_perl/5.6.1/Net/FTP.pm
Suggestions? I'm running Debian Woody.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Yet another strange problem with Perl upgrade
by shotgunefx (Parson) on Jul 08, 2002 at 21:40 UTC | |
by michellem (Friar) on Jul 08, 2002 at 22:45 UTC | |
by shotgunefx (Parson) on Jul 08, 2002 at 23:57 UTC | |
|
Same problem, different module (LWP)
by Anonymous Monk on Jul 08, 2002 at 22:29 UTC | |
by shotgunefx (Parson) on Jul 09, 2002 at 01:56 UTC | |
by Anonymous Monk on Jul 17, 2002 at 01:43 UTC | |
by aersoy (Scribe) on Jul 17, 2002 at 01:53 UTC | |
by Aristotle (Chancellor) on Jul 09, 2002 at 01:28 UTC |