That works, thanks.

Now it can't locate: ApacheTest/PerlRequireTest.pm, is that a dynamically
created module? Because the file isn't in the mod_perl source tree at all.


Andy Colson-2 wrote:
> 
> On 9/19/2012 2:43 PM, bluedome wrote:
>>
>>
>> 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
>>
> 
> Maybe setting @INC in apache.conf?
> 
> add:
> 
> PerlSwitches -I 
> "/opt/comms/be/perl5/perlbrew/perls/perl-5.16.0/lib/site_perl/5.16.0/x86_64-linux"
> 
> PerlSwitches -I 
> "/opt/comms/be/perl5/perlbrew/perls/perl-5.16.0/lib/site_perl/5.16.0"
> 
> etc...
> 
> 
> its not perfect... but maybe?
> 
> -Andy
> 
> 
> 
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/mod_perl-build-with-perlbrew-tp34454307p34454815.html
Sent from the mod_perl - General mailing list archive at Nabble.com.

Reply via email to