httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Kew <n...@webthing.com>
Subject Re: [users@httpd] Configuring httpd 2.0.54 --with-apr
Date Fri, 06 May 2005 22:35:40 GMT
Patrick Spinler wrote:

> I'm attempting to configure and compile apache httpd 2.0.54 on solaris
> 8, using gcc 2.95.
> 
> I have just priorly compiled and installed apr 1.1.1, and would like to
> ./configure my apache installation --with-apr, like so:

First, that combination needs some (tiny) code changes to compile, due
to some very minor changes to function args between apr/0.9 and 1.x.
It's simple enough, so long as you're not scared of C :-)
httpd-2.1.x compiles cleanly with apr-1.x.

> $ ./configure --prefix=/nssunix/apache/apache2 --enable-auth-anon
>  --enable-auth-anon --enable-auth-dbm --enable-auth-digest -enable-isapi
>  --enable-file-cache --enable-cache --enable-disk-cache
>  --enable-mem-cache --enable-ldap --enable-auth-ldap --enable-mime-magic
>  --enable-headers --enable-usertrack --enable-ssl --enable-http
>  --enable-dav --enable-info --enable-suexec --enable-cgi --enable-cgid
>  --enable-dav-fs --enable-vhost-alias --enable-speling --enable-rewrite
>  --with-ssl=/opt/openSSL --with-apr=/nssunix/apache/apr

I think you should rtfm a bit more.  Not all of those options make
very much sense, and enabling so many modules as static means that if
anything goes wrong, you've made the task of fixing it much harder.

> Doing so, I receive the following error:
> 
> checking for APR... configure: error: the --with-apr parameter is
> incorrect. It must specify an install prefix, a
> build directory, or an apr-config file.
> configure failed for srclib/apr-util

That's a confusing error message - note the last line!  You should
build it against a  matching APR and APR-UTIL pair: theoretically
you can mix-and-match, but that would seem perverse unless you have
a compelling reason.

My configure works fine with:
	--with-apr=/usr/local/apr/bin/apr-1-config
	--with-apr-util=/usr/local/apr/bin/apu-1-config

-- 
Nick Kew

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message