Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Apr 2010 01:40:11 -0500
From:      Scot Hetzel <swhetzel@gmail.com>
To:        Dan Langille <dan@langille.org>
Cc:        ports@freebsd.org
Subject:   Re: php5 upgrade woes
Message-ID:  <y2v790a9fff1004152340oa3a86cb5g62b0cfc45c6aaf00@mail.gmail.com>
In-Reply-To: <4BC7F0AF.1010903@langille.org>
References:  <4BC7F0AF.1010903@langille.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Apr 16, 2010 at 12:07 AM, Dan Langille <dan@langille.org> wrote:
> I've been trying for two days to upgrade php5. I fail.
>
> history:
>
> http://forums.freebsd.org/showthread.php?t=13284
>
> Short story:
>
> error: pcrelib/pcre.h: No such file or directory
>
> FreeBSD 8.0-STABLE #0: Tue Apr 13 19:28:24 BST 2010
>
>

A read thru the lang/php5/Makefile reveals that the missing
pcrelib/pcre.h is caused by the port using the devel/pcre port,
instead of the bundled pcre that is included in PHP:

.if defined(WITH_BUNDLED_PCRE)
CONFIGURE_ARGS+=--with-pcre-regex=yes
PLIST_SUB+=	PCRE=""
.else
LIB_DEPENDS+=	pcre.0:${PORTSDIR}/devel/pcre
CONFIGURE_ARGS+=--with-pcre-regex=${LOCALBASE}
PLIST_SUB+=	PCRE="@comment "
.endif

Make sure that the devel/php5-pcre port is uninstalled, and then
install the php5 port by defining WITH_BUNDLED_PCRE.

Scot



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?y2v790a9fff1004152340oa3a86cb5g62b0cfc45c6aaf00>