Hello Again All,

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.

#!/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;
The following error is triggered.
... 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.")
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?

In reply to Module Compilation Problem (cmd prompt vs. web) by mike hal

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.