in reply to newbie mod_perl: @INC and Apache::Constants

Me again. Here's the modperl error on httpd start:
root@sam:/home/xxxx/yyyy.com/mod-perl> start-dms [Thu Jul 31 02:04:00 2003] [error] Can't locate loadable object for mo +dule Apache::Constants in @INC (@INC contains: /home/xxxx/yyyy.com/mo +d-perl /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5. +8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/p +erl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_p +erl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /u +sr/lib/perl5/vendor_perl .) at /usr/lib/perl5/site_perl/5.8.0/i386-li +nux-thread-multi/mod_perl.pm line 14!Compilation failed in require at + /home/xxxx/yyyy.com/mod-perl/RKG/Redirect.pm line 5.!BEGIN failed--c +ompilation aborted at /home/xxxx/yyyy.com/mod-perl/RKG/Redirect.pm li +ne 5.!Compilation failed in require at (eval 2) line 3.! [Thu Jul 31 02:04:00 2003] [error] Can't load Perl module RKG::Redirec +t for server 192.168.1.4:8080, exiting...!
Here's my startup.pl
root@sam:/home/xxxx/yyyy.com/mod-perl> cat startup.pl use strict; use lib qw(/home/xxxx/yyyy.com/mod-perl); 1; root@sam:/home/xxxx/yyyy.com/mod-perl>
Here's my httpd.conf
root@sam:/home/xxxx/yyyy.com> tail httpd.conf # End of proxy directives. PerlRequire /home/xxxx/yyyy.com/mod-perl/startup.pl PerlModule RKG::Redirect <Location /r> SetHandler perl-script PerlHandler Apache::Redirect </Location>
Still stuck, thanks, folks!

Replies are listed 'Best First'.
Re: still stuck...
by simonm (Vicar) on Jul 31, 2003 at 19:31 UTC

    Can't locate loadable object for module Apache::Constants in @INC

    Did you follow the normal automated installation procedure (ie, using CPAN, PPM, or make install) to install Apache::Constants?

    I normally see this error when the .pm files are being found, but the relevant .so libraries were not built or installed correctly.

      Yes, I did. I've rebuilt both Apache and mod-perl since, and still getting the error. Stumped.
        Did you read the docs on this? It's also possible that you are either failing to actually install the mod_perl that built or have a problem with your LD_LIBRARY_PATH setting.