You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Juan Julian Merelo Guervos <jm...@geneura.ugr.es> on 2004/12/09 14:08:26 UTC

Building 1.99_17 with apache 2.0.52

Hi,
I seem to have a catch-22 problem when trying to build mod_perl (above 
version), static build.
If I write:

[root@geneura mod_perl-1.99_17]# perl Makefile.PL MP_USE_STATIC=1 
MP_AP_CONFIGURE="--with-mpm=prefork" 
MP_APR_CONFIG=/usr/local/new_apache/bin/apr-config
Reading Makefile.PL args from @ARGV
   MP_USE_STATIC = 1
   MP_AP_CONFIGURE = --with-mpm=prefork
   MP_APR_CONFIG = /usr/local/new_apache/bin/apr-config
Configure mod_perl with /usr/local/apache2? [y]
[  error] You specified MP_USE_STATIC but did not speficy the location 
of httpd's source tree with MP_AP_PREFIX

But if I do so, it says:
[  error] You need to pass either MP_AP_PREFIX or MP_APR_CONFIG, but not 
both

Of course, if I use only MP_AP_PREFIX, it complains about not being able 
to find apr-config.

I am at a loss. I finally built the dynamic version; it's probably all 
the same, but I would like to know how to build the static version, anyways.

JJ

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: Building 1.99_17 with apache 2.0.52

Posted by Stas Bekman <st...@stason.org>.
Juan Julian Merelo Guervos wrote:
> Stas Bekman wrote:
> 
>> Juan Julian Merelo Guervos wrote:
>>
>>> Hi,
>>> I seem to have a catch-22 problem when trying to build mod_perl 
>>> (above version), static build.
>>> If I write:
>>>
>>> [root@geneura mod_perl-1.99_17]# perl Makefile.PL MP_USE_STATIC=1 
>>> MP_AP_CONFIGURE="--with-mpm=prefork" 
>>> MP_APR_CONFIG=/usr/local/new_apache/bin/apr-config
>>> Reading Makefile.PL args from @ARGV
>>>   MP_USE_STATIC = 1
>>>   MP_AP_CONFIGURE = --with-mpm=prefork
>>>   MP_APR_CONFIG = /usr/local/new_apache/bin/apr-config
>>> Configure mod_perl with /usr/local/apache2? [y]
>>> [  error] You specified MP_USE_STATIC but did not speficy the 
>>> location of httpd's source tree with MP_AP_PREFIX
>>>
>>> But if I do so, it says:
>>> [  error] You need to pass either MP_AP_PREFIX or MP_APR_CONFIG, but 
>>> not both
>>>
>>> Of course, if I use only MP_AP_PREFIX, it complains about not being 
>>> able to find apr-config.
>>>
>>> I am at a loss. I finally built the dynamic version; it's probably 
>>> all the same, but I would like to know how to build the static 
>>> version, anyways.
>>
>>
>>
>> Juan, where did you read that you need to use MP_APR_CONFIG? What you 
>> need is MP_AP_PREFIX for static
>> http://perl.apache.org/docs/2.0/user/install/install.html#Static_mod_perl
> 
> 
> 
> Right there, in the error message. Not in the ones I have included, in 
> another one that mentioned it couldn't find '/include'

Please get the latest snapshot [1], try again and paste the exact error 
you've received. Please do so as a part of a proper bug report [2]. Thanks.

[1] 
http://perl.apache.org/download/source.html#Development_mod_perl_2_0_Source_Distribution
[2] http://perl.apache.org/bugs/

-- 
__________________________________________________________________
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

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: Building 1.99_17 with apache 2.0.52

Posted by Juan Julian Merelo Guervos <jm...@geneura.ugr.es>.
Stas Bekman wrote:

> Juan Julian Merelo Guervos wrote:
>
>> Hi,
>> I seem to have a catch-22 problem when trying to build mod_perl 
>> (above version), static build.
>> If I write:
>>
>> [root@geneura mod_perl-1.99_17]# perl Makefile.PL MP_USE_STATIC=1 
>> MP_AP_CONFIGURE="--with-mpm=prefork" 
>> MP_APR_CONFIG=/usr/local/new_apache/bin/apr-config
>> Reading Makefile.PL args from @ARGV
>>   MP_USE_STATIC = 1
>>   MP_AP_CONFIGURE = --with-mpm=prefork
>>   MP_APR_CONFIG = /usr/local/new_apache/bin/apr-config
>> Configure mod_perl with /usr/local/apache2? [y]
>> [  error] You specified MP_USE_STATIC but did not speficy the 
>> location of httpd's source tree with MP_AP_PREFIX
>>
>> But if I do so, it says:
>> [  error] You need to pass either MP_AP_PREFIX or MP_APR_CONFIG, but 
>> not both
>>
>> Of course, if I use only MP_AP_PREFIX, it complains about not being 
>> able to find apr-config.
>>
>> I am at a loss. I finally built the dynamic version; it's probably 
>> all the same, but I would like to know how to build the static 
>> version, anyways.
>
>
> Juan, where did you read that you need to use MP_APR_CONFIG? What you 
> need is MP_AP_PREFIX for static
> http://perl.apache.org/docs/2.0/user/install/install.html#Static_mod_perl


Right there, in the error message. Not in the ones I have included, in 
another one that mentioned it couldn't find '/include'

JJ


-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: Building 1.99_17 with apache 2.0.52

Posted by Stas Bekman <st...@stason.org>.
Juan Julian Merelo Guervos wrote:
> Hi,
> I seem to have a catch-22 problem when trying to build mod_perl (above 
> version), static build.
> If I write:
> 
> [root@geneura mod_perl-1.99_17]# perl Makefile.PL MP_USE_STATIC=1 
> MP_AP_CONFIGURE="--with-mpm=prefork" 
> MP_APR_CONFIG=/usr/local/new_apache/bin/apr-config
> Reading Makefile.PL args from @ARGV
>   MP_USE_STATIC = 1
>   MP_AP_CONFIGURE = --with-mpm=prefork
>   MP_APR_CONFIG = /usr/local/new_apache/bin/apr-config
> Configure mod_perl with /usr/local/apache2? [y]
> [  error] You specified MP_USE_STATIC but did not speficy the location 
> of httpd's source tree with MP_AP_PREFIX
> 
> But if I do so, it says:
> [  error] You need to pass either MP_AP_PREFIX or MP_APR_CONFIG, but not 
> both
> 
> Of course, if I use only MP_AP_PREFIX, it complains about not being able 
> to find apr-config.
> 
> I am at a loss. I finally built the dynamic version; it's probably all 
> the same, but I would like to know how to build the static version, 
> anyways.

Juan, where did you read that you need to use MP_APR_CONFIG? What you need 
is MP_AP_PREFIX for static
http://perl.apache.org/docs/2.0/user/install/install.html#Static_mod_perl

Regardless could you please try the latest snapshot, where the diagnostics 
are improved. To check whether we still have a problem. thanks
http://perl.apache.org/download/source.html#Development_mod_perl_2_0_Source_Distribution

-- 
__________________________________________________________________
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

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html