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.

“upgrade pcre with unicode on centos”에 대한 3개의 생각

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다

이 사이트는 스팸을 줄이는 아키스밋을 사용합니다. 댓글이 어떻게 처리되는지 알아보십시오.