As a reminder I am trying to run a perl program on my local computer (localhost). It is up and running on unix well.

I have had several problems involving missing modules which so far seem to be cleaned up. The last one was Image::Magick.

So now I have a new problem. (I am a novice at perl so please excuse my ignorance in this description of what is happening.)

I am now getting this error in apache error logs:

[Mon Jun 24 22:30:17.799951 2019] [cgi:error] [pid 18036:tid 1832] [cl +ient ::1:53447] End of script output before headers: main.pl [Mon Jun 24 22:30:17.801947 2019] [cgi:error] [pid 18036:tid 1832] [cl +ient ::1:53447] AH01215: Can't locate variables/variables.cgi in @INC + (@INC contains: C:/strawberry/perl/site/lib/MSWin32-x64-multi-thread + C:/strawberry/perl/site/lib C:/strawberry/perl/vendor/lib C:/strawbe +rry/perl/lib) at C:/strawberry/perl/site/lib/UltimateAuction.pm line +44.\r: C:/Apache24/htdocs/choo/cgi-bin/ua/main.pl [Mon Jun 24 22:30:17.801947 2019] [cgi:error] [pid 18036:tid 1832] [cl +ient ::1:53447] AH01215: Compilation failed in require at C:/Apache24 +/htdocs/choo/cgi-bin/ua/main.pl line 20.\r: C:/Apache24/htdocs/choo/c +gi-bin/ua/main.pl [Mon Jun 24 22:30:17.803027 2019] [cgi:error] [pid 18036:tid 1832] [cl +ient ::1:53447] AH01215: BEGIN failed--compilation aborted at C:/Apac +he24/htdocs/choo/cgi-bin/ua/main.pl line 20.\r: C:/Apache24/htdocs/ch +oo/cgi-bin/ua/main.pl
I know that path variables/variables.cgi is valid as the structure of the directories is the same as what is on unix.

This is what I think this is referring to, but I could be wrong This is located in the main.pl script: require "variables/variables.cgi";

I did google this type of error and although I didn't understand it, it could be related to a permission issue??

I'm thinking it is also possible that it is related to my running perl (on strawberry) in a different directory position than on the lynx. But other than those possibilities, I have no clue. Hopefully this will be obvious to someone with experience in perl.

Please let me know if you need more info. Thanks very much!

2019-07-01 Athanasius added code tags


In reply to Re^4: Sorry.. Same problem but some progress! by traincity
in thread Sorry.. Same problem but some progress! by traincity

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.