我已经从源代码编译了pcre 8.38,并加入了--enable-utf8 --enable-unicode-properties
选项,用pcretest -C utf
测试返回了1
。
执行which pcretest
命令返回的路径是/home/mybin/bin/pcretest
但是,当使用PCRE_LIBS="/home/mybin/lib" PCRE_CFLAGS="/home/mybin/bin"
编译glib 2.48
时,会遇到一个报错,报错信息在configure.log文件中。
checking for PCRE... yes
checking for Unicode support in PCRE... no
configure: error: *** The system-supplied PCRE does not support Unicode properties or UTF-8.
是否还有其他需要检查的内容才能通过glib configure
呢?
config.log
获取更详细的信息。 - TingPing