php5-pcre-5.2.1_4 was Re: FreeBSD Port: php5-5.2.1_3

Eric heli at mikestammer.com
Tue Mar 13 12:03:45 UTC 2007


gareth wrote:
> On Mon 2007-03-12 (23:15), Andr? B?hm wrote: 
> i get exactly the same.
> 
> this's a bug report about related errors that i also get: http://bugs.php.net/bug.php?id=29914
> and it suggests using the 'bundled' as opposed to 'external PCRE lib'. that doesn't
> seem like the best way gto go about it, but how would you? i don't see any bundled
> PCRE 'make config' options in php5?
> _______________________________________________


this is what i spent 5 hours messing around with yesterday. heres how I 
got it to work:

edit /usr/ports/lang/php5/Makefile

add --with-pcre-regex to the bottom of CONFIGURE_ARGS:

CONFIGURE_ARGS= --enable-versioning \
         --with-layout=GNU \
         --with-config-file-scan-dir=${PREFIX}/etc/php \
         --disable-all \
         --enable-libxml \
         --with-libxml-dir=${LOCALBASE} \
         --enable-reflection \
         --program-prefix="" \
         --with-pcre-regex

reinstall php5 and php5-pcre

Now it works. Before phpinfo was showing pcre version 2.x and now it 
shows 6.7 which i believe is what is built into 5.2

This has been a painful change

Eric


More information about the freebsd-ports mailing list