H
Henry Salvia
I'm trying to install the libnet module to use Net::FTP and have run
into a
problem. I've checked out the bug report page for libnet and the only
answer the
author gave was that the install must not be complete. I did do 2
installs, the
1st used a "non-standard" location by running perl Makefile.PL
PREFIX=/mypath
the 2nd was standard. Both installs passed "make test", and both fail
the
same way, code and error message below (only the host/login/passwd names
were
changed to protect the guilty...). And ideas on how to troubleshoot
this?
Thanks
Henry Salvia
(e-mail address removed)
#!/usr/local/bin/perl
use Net::FTP ;
use strict ;
my $host = "hhh" ;
my $login = "lll" ;
my $passwd = 'ppp' ;
my $dir = "/" ;
my $ftp = Net::FTP->new($host) or die "Can't: $@" ;
$ftp->login($login, $passwd) or die "Can't login: ", $ftp->message ;
$ftp->cwd($dir) ;
my $ls = $ftp->ls() ;
foreach my $f ( @$ls ) {
print "\t($f)\n" ;
}
$ftp->quit ;
marvin.Cadence.COM(hjs)-/mnt4/hjs/CPAN/libnet-1.19 76 > ./spoo
Can't locate object method "new" via package "Net::FTP::A" at
/usr/local/perl5.0
04/lib/sun4-solaris/5.00401/IO/Socket.pm line 247.
marvin.Cadence.COM(hjs)-/mnt4/hjs/CPAN/libnet-1.19 77 >
into a
problem. I've checked out the bug report page for libnet and the only
answer the
author gave was that the install must not be complete. I did do 2
installs, the
1st used a "non-standard" location by running perl Makefile.PL
PREFIX=/mypath
the 2nd was standard. Both installs passed "make test", and both fail
the
same way, code and error message below (only the host/login/passwd names
were
changed to protect the guilty...). And ideas on how to troubleshoot
this?
Thanks
Henry Salvia
(e-mail address removed)
#!/usr/local/bin/perl
use Net::FTP ;
use strict ;
my $host = "hhh" ;
my $login = "lll" ;
my $passwd = 'ppp' ;
my $dir = "/" ;
my $ftp = Net::FTP->new($host) or die "Can't: $@" ;
$ftp->login($login, $passwd) or die "Can't login: ", $ftp->message ;
$ftp->cwd($dir) ;
my $ls = $ftp->ls() ;
foreach my $f ( @$ls ) {
print "\t($f)\n" ;
}
$ftp->quit ;
marvin.Cadence.COM(hjs)-/mnt4/hjs/CPAN/libnet-1.19 76 > ./spoo
Can't locate object method "new" via package "Net::FTP::A" at
/usr/local/perl5.0
04/lib/sun4-solaris/5.00401/IO/Socket.pm line 247.
marvin.Cadence.COM(hjs)-/mnt4/hjs/CPAN/libnet-1.19 77 >