Click to See Complete Forum and Search --> : Moved script from Debian 2.2 to RH 7, now it doesn't work.


nunder
02-21-2001, 12:17 PM
I have the following perl script. It was written, and working on a machine that was running Debian 2.2. I tried to move it to a box running RH 7, and I get the following error. Any ideas?


Can't locate HTTP/Request/Common.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 /usr/lib/perl5/5.6.0/i386-linux/nshttp.pm line 7.
BEGIN failed--compilation aborted at /usr/lib/perl5/5.6.0/i386-linux/nshttp.pm line 7.
Compilation failed in require at /var/www/cgi-bin/licensecheck.pl line 5.
BEGIN failed--compilation aborted at /var/www/cgi-bin/licensecheck.pl line 5.
[Wed Feb 21 11:12:31 2001] [error] [client xxx.xxx.xxx.xxx] Premature end of script headers: /var/www/cgi-bin/licensecheck.pl

I've checked the path (the ones listed after @ above), and all of the files seem to be there.

error27
02-22-2001, 01:42 AM
maybe paste a copy of the code.

especially lines 1 - 10

nunder
02-22-2001, 11:52 AM
#!/usr/bin/perl

use strict;
my ($in, $ISP, @disallow, $ISPisOK, $TestISP);
use nshttp;

# Get the CGI module and make one
use CGI ;
$in = new CGI;

# Print the header
print "Content-type: text/html";
print "\r\n\r\n";

# Get the ISP from the parameters
$ISP = $in->param('ISP');

Strike
02-22-2001, 12:05 PM
Looks like it can't find a module that nshttp uses. But then again, my Perl is extremely limited and I'm basically just interpreting the error message.