Well after much hacking around and poking things, I finally got my Everything code site working. All was good with the world, then some SOB coworking unceremoniously shut my box down(long story).

My problem now is this: When initially installing everything on my redhat system, I discovered that CPAN had installed all of the modules into paths starting with /usr/local/lib/ instead of /usr/lib. Also these /usr/local paths had 5.6.1 in them instead of 5.6.0 and i686-linux instead of 1386-linux. What I did to remedy this problem at the time of initial setup was merely to:

export PERL5LIB='/usr/local/lib/perl5/5.6.1/i686-linux
/usr/local/lib/perl5/5.6.1
/usr/local/lib/perl5/site_perl/5.6.1/i686-linux
/usr/local/lib/perl5/site_perl/5.6.1 /usr/local/lib/perl5/site_perl'

I then started my /etc/init.d/http and everything was fine and dandy. Now, since I was lazy, I hadn't added these paths to my /etc/profile, they were only added to that terminal session. So when my computer was so inconveniently rebooted, the httpd startup script did not have these variables in the path and so it failed to start.

So now I go and properly add the new paths to my /etc/profile this time, but when I try to start httpd I get this:

Starting httpd: Syntax error on line 904 of /etc/httpd/conf/httpd.conf: Can't locate Apache/DBI.pm in @INC (@INC contains: /usr/local/lib/perl5/5.6.1/i686-linux
/usr/local/lib/perl5/5.6.1
/usr/local/lib/perl5/site_perl/5.6.1/i686-linux
/usr/local/lib/perl5/site_perl/5.6.1
/usr/local/lib/perl5/site_perl
/usr/lib/perl5/5.6.0/i386-linux
/usr/lib/perl5/5.6.0
/usr/lib/perl5/site_perl/5.6.0/i386-linux
/usr/lib/perl5/site_perl/5.6.0
/usr/lib/perl5/site_perl
. /etc/httpd/ /etc/httpd/lib/perl) at (eval 4) line 3. FAILED

Now, I've gone through the paths several times and checked to make sure the paths were correct, with no typos. The error messages lists all of the correct paths that I want it to see, but I have no idea why it can't find the DBI file. Even stranger to me is that I moved the actual file to an apprpriate place in the OLD set of paths and it found it fine. Normally I would let that be my solution, except that I would need to move all of the PM's to these directories, since DBI.pm was not able to find other files that IT needed in it's new location. Any help on this would be greatly appreciated.


In reply to Problems with environment variables. by Anonymous Monk

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.