Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: ModPerl

Perl include directories no longer work in mod_perl

 

 

ModPerl modperl RSS feed   Index | Next | Previous | View Threaded


mayuran.yogarajah at casalemedia

Dec 23, 2011, 2:45 PM

Post #1 of 3 (1014 views)
Permalink
Perl include directories no longer work in mod_perl

We just did an upgrade from Centos 5.5 to Centos 5.7 and it seems like the
extensions we added to the Perl library directories stopped working:



[Fri Dec 23 16:40:04 2011] [error] Can't locate Config/Simple.pm in @INC
(@INC contains: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl
/usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .
/etc/httpd)



We've been adding to the library path through /etc/profile:



LIB_LOCAL=/opt/custom/local

PERL5LIB=${PERL5LIB}:$LIB_LOCAL/lib/perl5/site_perl/5.8.8/i386-linux-thread-
multi

PERL5LIB=${PERL5LIB}:$LIB_LOCAL/lib/perl5/site_perl/5.8.8



And it looks to be fine:

echo $PERL5LIB

:/opt/custom/local/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi:/opt/cu
stom/local/lib/perl5/site_perl/5.8.8



It's been working fine until this upgrade to Centos 5.7.



Please advise. Any help is appreciated.



Thanks,

M


fred at redhotpenguin

Dec 23, 2011, 4:11 PM

Post #2 of 3 (986 views)
Permalink
Re: Perl include directories no longer work in mod_perl [In reply to]

Try 'yum install perl-Config-Simple'. If that doesn't work, search for the rpm with 'yum search Config-Simple'.


On Friday, December 23, 2011 at 2:45 PM, Mayuran Yogarajah wrote:

>
> We just did an upgrade from Centos 5.5 to Centos 5.7 and it seems like the extensions we added to the Perl library directories stopped working:
>
>
>
>
> [Fri Dec 23 16:40:04 2011] [error] Can't locate Config/Simple.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 . /etc/httpd)
>
>
>
>
> We’ve been adding to the library path through /etc/profile:
>
>
>
>
> LIB_LOCAL=/opt/custom/local
>
>
> PERL5LIB=${PERL5LIB}:$LIB_LOCAL/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi
>
>
> PERL5LIB=${PERL5LIB}:$LIB_LOCAL/lib/perl5/site_perl/5.8.8
>
>
>
>
> And it looks to be fine:
>
>
> echo $PERL5LIB
>
>
> :/opt/custom/local/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi:/opt/custom/local/lib/perl5/site_perl/5.8.8
>
>
>
>
> It’s been working fine until this upgrade to Centos 5.7.
>
>
>
>
> Please advise. Any help is appreciated.
>
>
>
>
> Thanks,
>
>
> M


mayuran.yogarajah at casalemedia

Dec 23, 2011, 4:12 PM

Post #3 of 3 (991 views)
Permalink
RE: Perl include directories no longer work in mod_perl - Solved [In reply to]

Turns out I had to put the PERL5LIB changes inside /etc/init.d/functions as well.

Thanks for your help,
M

-----Original Message-----
From: Fred Moyer [mailto:fred [at] redhotpenguin]
Sent: Friday, December 23, 2011 7:11 PM
To: Mayuran Yogarajah
Cc: modperl [at] perl
Subject: Re: Perl include directories no longer work in mod_perl

Try 'yum install perl-Config-Simple'. If that doesn't work, search for the rpm with 'yum search Config-Simple'.


On Friday, December 23, 2011 at 2:45 PM, Mayuran Yogarajah wrote:

>
> We just did an upgrade from Centos 5.5 to Centos 5.7 and it seems like the extensions we added to the Perl library directories stopped working:
>
>
>
>
> [Fri Dec 23 16:40:04 2011] [error] Can't locate Config/Simple.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 . /etc/httpd)
>
>
>
>
> We’ve been adding to the library path through /etc/profile:
>
>
>
>
> LIB_LOCAL=/opt/custom/local
>
>
> PERL5LIB=${PERL5LIB}:$LIB_LOCAL/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi
>
>
> PERL5LIB=${PERL5LIB}:$LIB_LOCAL/lib/perl5/site_perl/5.8.8
>
>
>
>
> And it looks to be fine:
>
>
> echo $PERL5LIB
>
>
> :/opt/custom/local/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi:/opt/custom/local/lib/perl5/site_perl/5.8.8
>
>
>
>
> It’s been working fine until this upgrade to Centos 5.7.
>
>
>
>
> Please advise. Any help is appreciated.
>
>
>
>
> Thanks,
>
>
> M

ModPerl modperl RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.