I successfully installed all the modules my program requires on a new server but for some reason my CGI scripts are not finding two of them. I've reinstalled them multiple times.

Installing /usr/local/lib64/perl5/auto/JSON/XS/XS.so Installing /usr/local/lib64/perl5/JSON/XS.pm Installing /usr/local/lib64/perl5/JSON/XS/Boolean.pm Installing /usr/local/share/man/man1/json_xs.1 Installing /usr/local/share/man/man3/JSON::XS.3pm Installing /usr/local/share/man/man3/JSON::XS::Boolean.3pm Installing /usr/local/bin/json_xs Appending installation info to /usr/lib64/perl5/perllocal.pod MLEHMANN/JSON-XS-3.02.tar.gz /usr/bin/make install -- OK

HTTPD Error Log

Can't locate JSON/XS.pm in @INC (@INC contains: /usr/local/lib64/perl +5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl +5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /var/www/cgi-bi +n/iprs/cips.cgi line 10., referer: http://10.70.19.110/daily_reports/ +cips.html?switch=GB [Mon Jul 18 11:23:53 2016] [error] [client XXXXX] BEGIN failed--compil +ation aborted at /var/www/cgi-bin/iprs/cips.cgi line 10., referer: ht +tp://XXXX/daily_reports/cips.html?switch=GB [Mon Jul 18 11:23:53 2016] [error] [client XXXXX] Premature end of scr +ipt headers: cips.cgi, referer: http://XXXXX/daily_reports/cips.html? +switch=GB
[root@XXXX perl5]# perl -e "use JSON::XS;" [root@XXXX perl5]# which perl /usr/bin/perl [root@XXXXX iprs]# head cips.cgi #!/usr/bin/perl -w use LWP::UserAgent; use Data::Dumper; use JSON::XS;

This is also happening for my module Email::Stuff. Any thoughts? Is this a httpd issue?


In reply to Missing Modules by jjeff007

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.