RE: using modules installed in local CGI bin

2001-06-08 Thread Al Hospers
> 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

RE: using modules installed in local CGI bin

2001-06-08 Thread Al Hospers
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

RE: using modules installed in local CGI bin

2001-06-08 Thread Moon, John
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

RE: using modules installed in local CGI bin

2001-06-08 Thread Al Hospers
> Oops ... too much paste ... sorry John. does not compute? Al

RE: using modules installed in local CGI bin

2001-06-08 Thread Curtis Poe
> 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? >

RE: using modules installed in local CGI bin

2001-06-08 Thread Moon, John
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

RE: using modules installed in local CGI bin

2001-06-08 Thread Al Hospers
> 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

RE: using modules installed in local CGI bin

2001-06-08 Thread Al Hospers
is this correct? #!/usr/local/bin/perl print "Content-Type:text/html\n\n"; print 0) @paths=split /:/, $ENV{$key}; if

RE: using modules installed in local CGI bin

2001-06-08 Thread Timothy Kimball
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

RE: using modules installed in local CGI bin

2001-06-08 Thread Al Hospers
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: ./

Re: using modules installed in local CGI bin

2001-06-08 Thread Timothy Kimball
: use line "./libnet"; sorry, that should be use lib "./libnet"; -- tdk

Re: using modules installed in local CGI bin

2001-06-08 Thread Timothy Kimball
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

RE: using modules installed in local CGI bin

2001-06-08 Thread Moon, John
NC follows:'; foreach $b (@INC) { print '$INC[' . $i++ . "]= $b\n"; } print ""; John W Moon -----Original Message- From: Al Hospers [mailto:[EMAIL PROTECTED]] Sent: June 08, 2001 14:02 To: [EMAIL PROTECTED] Subject: using modules installed in l

using modules installed in local CGI bin

2001-06-08 Thread Al Hospers
hi, I have a project that I am working on that I need to FTP some data from a server to another server. I used Net::FTP from libnet to do it. I tested it on my local machine & it works fine, did the job. however when tried it on my site I found out that libnet was not installed. contacting the h