upgrade pcre with unicode on centos

centos의 경우 pcre(Perl Compatible Regular Expressions)에서 unicode에 대한  대한 처리가 안되어있다.

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

참조 : http://chrisjean.com/2009/01/31/unicode-support-on-centos-52-with-php-and-pcre/

wget http://vault.centos.org/5.1/updates/SRPMS/pcre-6.6-2.el5_1.7.src.rpm
rpm -ivh pcre-6.6-2.el5_1.7.src.rpm
vi /usr/src/redhat/SPECS/pcre.spec

%configure --enable-utf8 --enable-unicode-properties #add '--enable-unicode-properties'

rpmbuild -ba /usr/src/redhat/SPECS/pcre.spec
rpm -Uvh /usr/src/redhat/RPMS/i386/pcre-6.6-2.7.i386.rpm /usr/src/redhat/RPMS/i386/pcre-devel-6.6-2.7.i386.rpm