编译glib 2.48无法识别具有utf支持的pcre

art*_*lay 8 gcc pcre glib utf-8

我已经从源代码编译了pcre 8.38 --enable-utf8 --enable-unicode-properties并进行了pcretest -C utf重新编译1.

一个which pcretest回报/home/mybin/bin/pcretest

但是在glib 2.48使用PCRE_LIBS="/home/mybin/lib" PCRE_CFLAGS="/home/mybin/bin"i 编译时会configure从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.
Run Code Online (Sandbox Code Playgroud)

还有什么我应该检查glib configure以通过?

Dr.*_*wer 6

我也遇到了他的问题.确保LD_LIBRARY_PATH中还有$ PCRE_INSTALL_DIR/lib.这解决了我的问题.