7月 16, 2010
PCRE has not been compiled with Unicode property support.
「PCRE has not been compiled with Unicode property support.」のエラーの解決策
まずは現状を確認
[root@centos ~]# pcretest -C PCRE version 6.6 06-Feb-2006 Compiled with UTF-8 support No Unicode properties support Newline character is LF Internal link size = 2 POSIX malloc threshold = 10 Default match limit = 10000000 Default recursion depth limit = 10000000 Match recursion uses stack
configureだけ修正すればOK。。。
後はリビルドしよう。。。
[root@centos ~]# wget ftp://ftp.redhat.com/pub/redhat/linux/enterprise/5Server/en/os/SRPMS/pcre-6.6-2.el5_1.7.src.rpm [root@centos ~]# rpm -ivh pcre-6.6-2.el5_1.7.src.rpm [root@centos ~]# vi /usr/src/redhat/SPECS/pcre.spec %configure --enable-utf8 ↓ %configure --enable-utf8 --enable-unicode-properties [root@centos ~]# rpmbuild -ba /usr/src/redhat/SPECS/pcre.spec [root@centos ~]# rpm -Uvh /usr/src/redhat/RPMS/i386/pcre-6.6-2.7.i386.rpm
apacheを再起動かけて、確認↓
[root@centos ~]# /etc/init.d/httpd restart [root@centos ~]# pcretest -C PCRE version 6.6 06-Feb-2006 Compiled with UTF-8 support Unicode properties support Newline character is LF Internal link size = 2 POSIX malloc threshold = 10 Default match limit = 10000000 Default recursion depth limit = 10000000 Match recursion uses stack
以上。。。
CakePHP 1.3.6 PCRE has not been compiled with Unicode support.
CakePHP 1.3.6のインストール時に見なれない黄色バーが出ました。
「PCRE has not been compiled with Unicode support.」
ということで、調べたら、
CentOS5系でPCREのUnicode properties supportがな…