CakePHP 2.0 now requires an updated version of libpcre

In a previous post, I included steps to fix the PCRE problem in Cake 1.3.  After upgrading to CakePHP 2.0, I found that those steps on CentOS 5.4 aren’t sufficient to run Cake console scripts.  To fix it, here are the steps:

# yum remove pcre-devel
# Download the latest source (v8.21) from http://sourceforge.net/projects/pcre/files/pcre/ 
# ./configure --enable-utf8 --enable-unicode-properties --prefix=/usr/bin --exec-prefix=/usr/lib --libdir=/usr/lib 
# make clean && make install
 
# Run it again with the other libdir
# ./configure --enable-utf8 --enable-unicode-properties --prefix=/usr/bin --exec-prefix=/usr/lib --libdir=/usr/lib64
# make clean && make install

Then rebuild PHP.

After this you should be able to run Console scripts without errors.

Leave a comment

Your email address will not be published. Required fields are marked *