mike hal has asked for the wisdom of the Perl Monks concerning the following question:
This is a follow-up to this question. However, now I think that I have significantly narrowed the scope of the problem...hopefully :-). The test script below executes fine when run from the command prompt but fails when executed via the web server.
The following error is triggered.#!/usr/bin/perl -w use strict; use lib qw(the/full/dir/path/8080/cgi-bin/usr/local the/full/dir/path/8080/cgi-bin/usr/local/lib/perl5 the/full/dir/path/8080/cgi-bin/usr/local/bin the/full/dir/path/8080/cgi-bin/usr/local/lib/perl5/site_perl the/full/dir/path/8080/cgi-bin/usr/local/bin); use CGI qw/:standard/; use HTTP::Request print header; print "TEST SCRIPT\n"; exit;
At first I figured that the user that the web server runs under didn't have permission to read the modules. So I created a symbolic link to the module file (Request.pm) and the module contents displayed in the browser. Any thoughts?... the CGI program /the/full/dir/path/8080/htdocs/test.cgi did not pr +oduce a valid header (name without value: got line "compilation faile +d in require at /the/full/dir/path/8080/cgi-bin/usr/local/lib/perl5/s +ite_perl/http/request.pm line 14.")
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Module Compilation Problem (cmd prompt vs. web)
by InfiniteSilence (Curate) on Sep 26, 2005 at 18:56 UTC | |
|
Re: Module Compilation Problem (cmd prompt vs. web)
by randyk (Parson) on Sep 27, 2005 at 06:03 UTC | |
by mike hal (Initiate) on Sep 27, 2005 at 14:47 UTC | |
by randyk (Parson) on Sep 27, 2005 at 16:26 UTC |