Re: [users@httpd] Configuring httpd 2.0.54 --with-apr

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux