카테고리 없음
mongodb를 source로 컴파일해서 사용할려고 하면 아래와 같은 warning이 등장한다.

"warning: some regex utf8 things will not work.  pcre build doesn't have --enable-unicode-properties"

아래와 같이 확인 해보면 "No Unicode properties support" 라고 확인할 수 있다.
# 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
rpm으로 pcre를 업그레이드해서 unicode를 support 하도록 해보자.
상세 내용은 아래 링크에서 참조할 수 있다.
http://chrisjean.com/2009/01/31/unicode-support-on-centos-52-with-php-and-pcre/
wget으로 rpm을 다운 받자.
# wget http://vault.centos.org/5.1/updates/SRPMS/pcre-6.6-2.el5_1.7.src.rpm
rpm을 풀어서 소스를 수정
# rpm -ivh pcre-6.6-2.el5_1.7.src.rpm
vi로 pcre.spec을 수정
# vi /usr/src/redhat/SPECS/pcre.spec
%configure --enable-utf8 <- 이렇게만 되어있는 곳에 --enable-unicode-properties를 추가하자
"%configure --enable-utf8 --enable-unicode-properties"



 
rpm을 다시 빌드하자
# rpmbuild -ba /usr/src/redhat/SPECS/pcre.spec
rpm 설치
# 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
확인
# 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