Upgrading Apache fails - Solved

Peter Boosten peter at boosten.org
Wed Jul 28 06:56:52 UTC 2010


On 28-7-2010 7:53, Zbigniew Szalbot wrote:
> Hello,
> 
>> I had to pkg_delete both apache22 and apr1, pkgdb -F, then reinstall
>> apache22, but all is well now.
> 
> I followed the original suggestions from UPDATING
> 
> 1. pkg_delete -f apache-2.\*
> 2. portupgrade -f -o devel/apr1 devel/apr
> 3. portinstall www/apache22
> 
> However, I get the following then:
> 
> 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.
> ===>  Script "configure" failed unexpectedly.
> Please report the problem to apache at FreeBSD.org [maintainer] and attach the
> "/usr/ports/www/apache22/work/httpd-2.2.16/config.log" including the output
> of the failure of your make command. Also, it might be a good idea to provide
> an overview of all packages installed on your system (e.g. an `ls
> /var/db/pkg`).
> *** Error code 1
> 
> Stop in /usr/ports/www/apache22.
> *** Error code 1
> 
> Stop in /usr/ports/www/apache22.
> ** Command failed [exit code 1]: /usr/bin/script -qa
> /tmp/portinstall20100728-30282-trybeq-0 env make
> ** Fix the problem and try again.
> ** Listing the failed packages (-:ignored / *:skipped / !:failed)
>         ! www/apache22  (configure error)
> 
> When I check pkg_info -Ix apr, I get:
> 
> pkg_info -Ix apr
> apr-ipv6-devrandom-gdbm-db42-mysql50-1.4.2.1.3.9_1 Apache Portability Library
> xf86dgaproto-2.0.3  XFree86-DGA extension headers
> xineramaproto-1.1.2 Xinerama extension headers
> 
> Do you think I should delete the apr port before attempting to install
> apache again?
> 

It has been a while back, but IIRC I had to 'make config' in the apr
port to enable ldap (because I'm using that) to be able to recompile
apr/apache.

Peter


-- 
http://www.boosten.org


More information about the freebsd-questions mailing list