mod_perl build with perlbrew

bluedome <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <[email protected]>

I'm building mod_perl with a perl built using perlbrew.

The build succeeds but make test fails because @INC is not correct.

@INC for the perlbrew-built perl is:

  @INC:
   
/opt/comms/be/perl5/perlbrew/perls/perl-5.16.0/lib/site_perl/5.16.0/x86_64-linux
    /opt/comms/be/perl5/perlbrew/perls/perl-5.16.0/lib/site_perl/5.16.0
    /opt/comms/be/perl5/perlbrew/perls/perl-5.16.0/lib/5.16.0/x86_64-linux
    /opt/comms/be/perl5/perlbrew/perls/perl-5.16.0/lib/5.16.0

I built mod_perl with this perl, so it seems like it should keep this in
INC, but it doesn't.  When I run
apache the INC is:

/usr/sbin/httpd  -d /opt/comms/be/code/apache_extensions/mod_perl-2.0.7/t -f
/opt/comms/be/code/apache_extensions/mod_perl-2.0.7/t/conf/httpd.conf -D
APACHE2 
using Apache/2.2.15 (prefork MPM)

waiting 120 seconds for server to start: .Can't locate lib.pm in @INC (@INC
contains:
/opt/comms/be/code/apache_extensions/mod_perl-2.0.7/t/htdocs/testdirective/main
/opt/comms/be/code/apache_extensions/mod_perl-2.0.7/t/htdocs/testdirective/perlmodule-vh
/usr/lib/site_perl/5.16.0/x86_64-linux /usr/lib/site_perl/5.16.0
/usr/lib/5.16.0/x86_64-linux /usr/lib/5.16.0).

I have tried modifying the INC setting during the mod_perl build by using a
command of the form:

perl Makefile.PL MP_APXS=/usr/sbin/apxs INC="-I.... -I..."

and also I've tried setting LD_LIBRARY_PATH environment variable to those
paths when running httpd, and still getting this error.

My questions are:

1. why does mod_perl lose the INC that is required to run the perl that it
is built with?
2. what do I try next?

Thanks
-- 
View this message in context: http://old.nabble.com/mod_perl-build-with-perlbrew-tp34454307p34454307.html
Sent from the mod_perl - General mailing list archive at Nabble.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.