>> I found a .cpanm directory in /home/user where all the modules are >> being installed. Could that have anything to do with it? I tried adding >> that directory with "use lib" but I still get the 500 error.
> I ran your script and, when I manually include the .cpanm directory, it returns: /home/user/cgi-bin/test.pl syntax OK meaning, you added: use lib q{/home/user/.cpanm/}; > otherwise, it returns: Can't locate CGI/Carp.pm in @INC (you may need to install the CGI::Carp module) (@INC contains: /home/user/perl5/perlbrew/ perls/perl-5.26.1/lib/site_perl/5.26.1/x86_64-linux /home/user/perl5/perlbrew/perls/perl-5.26.1/lib/site_perl/5.26.1 /home/user/perl5/perlbrew/perls/perl-5.26.1/lib/5.26.1/x86_64-linux /home/user/perl5/perlbrew/perls/perl-5.26.1/lib/5.26.1) at /home/user/cgi-bin/test.pl line 9. BEGIN failed--compilation aborted at /home/user/cgi-bin/test.pl line 9. Right, so that's your 500 error. But you added the same line in the original (before the use Carp line?) and it *didn't* fix the problem? Can you sym link the .cpanm dir under one of those @INC dirs. Hm, there's also an PERL5LIB env var you can set to add libraries (maybe in the webserver config). On Thu, Dec 7, 2017 at 5:29 PM, SSC_perl <p...@surfshopcart.com> wrote: > > On Dec 7, 2017, at 3:09 PM, Andy Bach <afb...@gmail.com> wrote: > > > > Can you not look a the web server's error_log? A 500 error would put > the perl error msg in there. Have you tried just "use" a different module? > > Those errors aren't appearing in the errors log in cPanel. I > couldn't find another error log in WHM. > > > Hmm, can you try... > > I ran your script and, when I manually include the .cpanm > directory, it returns: > > /home/user/cgi-bin/test.pl syntax OK > > otherwise, it returns: > > Can't locate CGI/Carp.pm in @INC (you may need to install the CGI::Carp > module) (@INC contains: /home/user/perl5/perlbrew/ > perls/perl-5.26.1/lib/site_perl/5.26.1/x86_64-linux > /home/user/perl5/perlbrew/perls/perl-5.26.1/lib/site_perl/5.26.1 > /home/user/perl5/perlbrew/perls/perl-5.26.1/lib/5.26.1/x86_64-linux > /home/user/perl5/perlbrew/perls/perl-5.26.1/lib/5.26.1) at > /home/user/cgi-bin/test.pl line 9. BEGIN failed--compilation aborted at > /home/user/cgi-bin/test.pl line 9. > > > Here's more info. I ran the following command, which produced an > error: > > > perlbrew exec perl -e 'print $]' > Use of uninitialized value in list assignment at > /home/user/perl5/perlbrew/bin/perlbrew line 2220. > perl-5.26.1 > ========== > 5.026001 > > Looks like this has been reported for a few years without a > solution: > > https://rt.cpan.org/Public/Bug/Display.html?id=111978 > > Could this be part of the problem? I'm running perlbrew 0.80. > > Frank > > P.S. Re-installing cpanm didn't solve the problem. -- a Andy Bach, afb...@gmail.com 608 658-1890 cell 608 261-5738 wk