我最近升级到 Octave 3.6.4,突然在收到消息时遇到问题(octave:23508): GLib-CRITICAL **: PCRE library is compiled without UTF8 support
。一个简单的测试pcretest -C
给了我
PCRE version 8.21 2011-12-12
Compiled with
No UTF-8 support
No Unicode properties support
No just-in-time compiler support
Newline sequence is LF
\R matches all Unicode newlines
Internal link size = 2
POSIX malloc threshold = 10
Default match limit = 10000000
Default recursion depth limit = 10000000
Match recursion uses stack
经过研究,我下载了源代码并重新编译(使用这些说明:)在此处输入链接描述。现在,我的系统上有两个版本的 libpcre。以前的 8.21 英寸/usr/local/bin/pcretest
和新的 8.33 英寸/usr/bin/pcretest
。后者是我想要的,因为它给了
ahowe42@Neuromancer:~/Downloads$ /usr/bin/pcretest -C
PCRE version 8.33 2013-05-28
Compiled with
8-bit support
UTF-8 support
16-bit support
UTF-16 support
32-bit support
UTF-32 support
Unicode properties support
No just-in-time compiler support
Newline sequence is LF
\R matches all Unicode newlines
Internal link size = 2
POSIX malloc threshold = 10
Default match limit = 10000000
Default recursion depth limit = 10000000
Match recursion uses stack
但是,在没有路径的情况下运行 pcretest 仍然使用旧的,就像 Octave 一样。如何删除 8.21 版和/或强制系统使用 8.33?