Hey guys, so i'm a little stuck here. I have a perl page i'm trying to first get working on a local host enviroment before I move it over to my production server. However if I use a simple hello.pl page it works perfect in the browser

#!/usr/bin/perl print "Content-type: text/html\n\n"; print "Hello this is just a kindness.\n";
However when I try to load the actual script 'step1.pl' and open it I just get a 500 error. So I tailed the error_log to see why and I found this.
[Mon Aug 11 08:19:07 2014] [error] Can't locate CGI.pm in @INC (@INC c +ontains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/per +l5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/sha +re/perl5 . /etc/httpd) at /var/www/vhosts/ibstrategies.com/httpdocs/s +tep1.pl line 3.\nBEGIN failed--compilation aborted at /var/www/vhosts +/ibstrategies.com/httpdocs/step1.pl line 3.\n
However I know that CGI.pm is installed.
[root@chelsea /]# perl -e 'use CGI; print $CGI::VERSION."\n";' 4.03
Any ideas i'm really confused.

In reply to Perl 500 error by hauntedbyshadow

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.