jjeff007 has asked for the wisdom of the Perl Monks concerning the following question:
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?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Missing Modules
by kcott (Archbishop) on Jul 19, 2016 at 05:45 UTC | |
|
Re: Missing Modules
by neilwatson (Priest) on Jul 18, 2016 at 15:31 UTC | |
by jjeff007 (Initiate) on Jul 18, 2016 at 15:46 UTC | |
|
Re: Missing Modules
by haukex (Archbishop) on Jul 19, 2016 at 11:37 UTC | |
|
Re: Missing Modules
by shmem (Chancellor) on Jul 18, 2016 at 21:33 UTC | |
|
Re: Missing Modules
by Anonymous Monk on Jul 18, 2016 at 23:08 UTC |