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
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |