Upgrading Apache fails - Solved

Zbigniew Szalbot zszalbot at gmail.com
Wed Jul 28 05:53:52 UTC 2010


> 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
*** 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- 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?

Thank you!

Zbigniew Szalbot

More information about the freebsd-questions mailing list