> the script should be ...
thanks John. OK got it working. so what am I looking for? here is some of
the info:
PATHS are: /bin /usr/vde/bin /usr/local/bin /usr/gnu/bin /usr/ucb
/usr/css/bin /usr/local/cvbin
$INC[1]= /usr/local/pkg/perl5/lib
$INC[2]= /usr/local/pkg/perl5/lib/site_perl/sun4-so
tdk wrote:
Did you just copy the FTP.pm file into this area, or did you actually do
the install? i.e., something like
perl Makefile.PL prefix=/myinstall/directory
make
make test
make install
I just deleted the entire libnet folder & started over.
so, first I did:
perl Makefile.PL prefix=/l
print '';
}
}
else
{
print "$key = $ENV{$key}\n";
}
}
print 'INC follows:';
foreach $b (@INC) {
print '$INC[' . $i++ . "]= $b\n";
print '';
-----Original Message-----
From: Al Hospers [mailto:[EMAIL
> Oops ... too much paste ...
sorry John. does not compute?
Al
> if ($#path > 0)
> @paths=split /:/, $ENV{$key};
Should be
if ($#path > 0) {
@paths=split /:/, $ENV{$key};
}
Your content type should be (space after the colon)
print "Content-Type: text/html\n\n";
--- Al Hospers <[EMAIL PROTECTED]> wrote:
> is this correct?
>
Oops ... too much paste ...
John W Moon
-Original Message-
From: Al Hospers [mailto:[EMAIL PROTECTED]]
Sent: June 08, 2001 15:57
To: [EMAIL PROTECTED]
Subject: RE: using modules installed in local CGI bin
is this correct?
#!/usr/local/bin/perl
print "Content-Type:text/htm
> Did you just copy the FTP.pm file into this area, or did you
> actually do
> the install? i.e., something like
>
> perl Makefile.PL prefix=/myinstall/directory
> make
> make test
> make install
I did perl Makefile.PL but not the perfix... stuff. perhaps I should remove
it all, copy it up again
is this correct?
#!/usr/local/bin/perl
print "Content-Type:text/html\n\n";
print 0)
@paths=split /:/, $ENV{$key};
if
Al Hospers wrote:
: I changed the setup to
:
: #!/usr/local/bin/perl
: use CGI qw(:all);
: use lib "./libnet";
: use Net::FTP;
: print header;
: ...
: now I get this error
:
: BEGIN failed--compilation aborted at weather_ftp.cgi line 4.
I presume this is from the server's error_log. Is th
OK,
I changed the setup to
#!/usr/local/bin/perl
use CGI qw(:all);
use lib "./libnet";
use Net::FTP;
print header;
originally this was the error I got:
BEGIN failed--compilation aborted at weather_ftp.cgi line 4.
vde$ perl weather_ftp.cgi
Can't locate Net/FTP.pm in @INC (@INC contains: ./
: use line "./libnet";
sorry, that should be
use lib "./libnet";
-- tdk
Al Hospers wrote:
: ... HOWEVER, I cannot get my
: script to find the modules.
:
: here's the initial part of the code. according to the error message it fails
: on line 4 where it cannot find the Net::FTP module.
:
: #!/usr/local/bin/perl
: use CGI qw(:all);
: use lib "/libnet/Net";
: use
Try using
BEGIN {
$ENV{PATH}.="../libnet/net";
}
You may wish to print your "path" and other environment variables just to
see what you are getting when you enter Perl...
#!/usr/local/bin/perl5.00502
print "Content-Type:text/html\n\n";
print
13 matches
Mail list logo