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

글쓴이

yupmin

Inside Deep Throat.

3 thoughts on “upgrade pcre with unicode on centos”

답글 남기기

이메일은 공개되지 않습니다. 필수 입력창은 * 로 표시되어 있습니다

This site uses Akismet to reduce spam. Learn how your comment data is processed.