You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Benny Jensen <be...@gautland.nu> on 2002/10/17 19:37:24 UTC

Compilation problems with mod_perl


Hello,

I'm trying to compile mod_perl for apache2. But i got a error message that i dont know how to solve. The following message is what i get: 

LD_RUN_PATH="" cc  -shared -L/usr/local/lib APR.o  -o ../../../blib/arch/Apache2/auto/APR/APR.so   -lapr -laprutil
/usr/bin/ld: cannot find -lapr
collect2: ld returned 1 exit status

APR.so exist in following map:

/usr/local/lib/perl/5.8.0/Apache2/auto/APR/APR.so

If anyone could help me to solve it....

//Benny Jensen


Re: Compilation problems with mod_perl

Posted by Stas Bekman <st...@stason.org>.
Stas Bekman wrote:
> Benny Jensen wrote:
> 
>>  
>> Hello,
>>  
>> I'm trying to compile mod_perl for apache2. But i got a error message 
>> that i dont know how to solve. The following message is what i get:
>>  
>> /LD_RUN_PATH="" cc  -shared -L/usr/local/lib APR.o  -o 
>> ../../../blib/arch/Apache2/auto/APR/APR.so   -lapr -laprutil
>> /usr/bin/ld: cannot find -lapr
>> collect2: ld returned 1 exit status
>> /
>> APR.so exist in following map:
>>  
>> //usr/local/lib/perl/5.8.0/Apache2/auto/APR/APR.so/
>> If anyone could help me to solve it....
> 
> 
> it's looking for libapr, not APR. You must have messed up the apache 
> build step or missed it completely and don't have apache built yet. 
> Review the installation steps at:
> http://perl.apache.org/docs/2.0/user/install/install.html#Condiguring_and_Installing_Prerequisites 

That was actually a broken build after the apr project has changed the 
way it names the libraries. So please disregard my previous reply and 
get the latest cvs, it should work now.


__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


Re: Compilation problems with mod_perl

Posted by Stas Bekman <st...@stason.org>.
Benny Jensen wrote:
>  
> Hello,
>  
> I'm trying to compile mod_perl for apache2. But i got a error message 
> that i dont know how to solve. The following message is what i get:
>  
> /LD_RUN_PATH="" cc  -shared -L/usr/local/lib APR.o  -o 
> ../../../blib/arch/Apache2/auto/APR/APR.so   -lapr -laprutil
> /usr/bin/ld: cannot find -lapr
> collect2: ld returned 1 exit status
> /
> APR.so exist in following map:
>  
> //usr/local/lib/perl/5.8.0/Apache2/auto/APR/APR.so/
> If anyone could help me to solve it....

it's looking for libapr, not APR. You must have messed up the apache 
build step or missed it completely and don't have apache built yet. 
Review the installation steps at:
http://perl.apache.org/docs/2.0/user/install/install.html#Condiguring_and_Installing_Prerequisites



__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com