When configuring PCRE using unicode turn on.And PCRE configure summary show unicode and utf8/16/32 which are all yes.The PCRE installed to /usr/local. When configuring Glib using --with-pcre=system,the error message is "The system-supplied PCRE does not support Unicode".Had already set PKG_CONFIG_PATH include /usr/local/lib/pkgconfig and --with-sysroot=/usr/local pcre Code: ./configure --enable-unicode-properties --enable-newline-is-anycrlf --enable-bsr-anycrlf --with-gnu-ld [other option] make make install configure glib Code: export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH ./configure --with-gnu-ld --with-sysroot=/usr/local --with-pcre=system
I checked the glib's config.log.In log,the error message is written. Code: configure:28051: checking for Unicode support in PCRE configure:28077: gcc -o conftest -g -O2 -I/usr/local/include -pthread conftest.c -L/usr/local/lib -lpcre >&5 configure:28077: $? = 0 configure:28077: ./conftest ./conftest: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory configure:28077: $? = 127 configure: program exited with status 127 First,the PCRE's path(/usr/local/lib) is right. Second,libpcre.so.1 is exists in /usr/local/lib Code: ls /usr/local/lib/libpcre.so* /usr/local/lib/libpcre.so /usr/local/lib/libpcre.so.1.2.10 /usr/local/lib/libpcre.so.1