[Catalyst] Strange Question when using catalyst with apache

Matt S Trout dbix-class at trout.me.uk
Mon Jun 11 15:32:38 GMT 2007

On Mon, Jun 11, 2007 at 04:28:09PM +0800, Cookie wrote:

> [Mon Jun 11 03:27:28 2007] [error] Can't locate Catalyst/Runtime.pm in @INC
> (@INC contains: /flex/www/html/lj/catalyst/lib
> /usr/lib/perl5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/5.8.5
> /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi
> /usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi
> /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi
> /usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi
> /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi
> /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
> /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4
> /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2
> /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0
> /usr/lib/perl5/site_perl
> /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi
> /usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi
> /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi
> /usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi
> /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi
> /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
> /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4
> /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2
> /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0
> /usr/lib/perl5/vendor_perl . /flex/apache/ /flex/apache/lib/perl) at
> /flex/www/html/lj/catalyst/lib/Add.pm line 6.\nBEGIN failed--compilation
> aborted at /flex/www/html/lj/catalyst/lib/Add.pm line 6.\nCompilation failed
> in require at (eval 2) line 3.\n

First, shoot whoever did that to your perl.

Second, you didn't set PERL5LIB quite right, or it's not set in apache
quite right, so perl's picking up a .pm file for one version of DynaLoader
and the compiled bits for another, which is basically screwed.

If you're your own sysadmin, I'd recompile perl and apache clean and start
from there. If not, I'd contact your sysadmin and ask them to figure it out,
since I suspect your problems are a fairly direct result of their Igor-ing
of your system :)

      Matt S Trout       Need help with your Catalyst or DBIx::Class project?
   Technical Director    Want a managed development or deployment platform?
 Shadowcat Systems Ltd.  Contact mst (at) shadowcatsystems.co.uk for a quote
http://chainsawblues.vox.com/             http://www.shadowcatsystems.co.uk/ 

More information about the Catalyst mailing list