grep: this version of PCRE is not compiled with PCRE_UTF8 support
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了grep: this version of PCRE is not compiled with PCRE_UTF8 support相关的知识,希望对你有一定的参考价值。
前言:
公司服务器在迁移之后出现了问题,在grep使用正则表达式的时候老是提示grep: this version of PCRE is not compiled with PCRE_UTF8 support,pcre是正则表达式的函数库,使如果不改正,很烦人。我是源码安装的。所以重新编译的时候加上支持utf-8的选项就可以了。
步骤:
(1)卸载prce
假如是rpm包,直接rpm -qa | grep prce 或rpm -e pcre --nodeps 就可以了,我这边用的是源码包编译安装的。
[[email protected] pcre]# cd /pcre
[[email protected] pcre]# make uninstall
(2)查看支持uts-8的可选项是什么
[[email protected] pcre]# cd /pcre
[[email protected] pcre]# ./configure --help
(3)重新编译
[[email protected] pcre]# ./configure --enable-utf8
[[email protected] pcre]# make && make install
(4)验证
这是没加的时候
这是重新编译后的,不会再显示那一行
本文出自 “庭中有奇树” 博客,请务必保留此出处http://zhangdl.blog.51cto.com/11050780/1795507
以上是关于grep: this version of PCRE is not compiled with PCRE_UTF8 support的主要内容,如果未能解决你的问题,请参考以下文章
This version of the rendering library is more recent than your version of ADT plug-in
RuntimeError: module compiled against API version 0xb but this version of numpy is 0xa
GoLand调试报错:Version of Delve is too old for this version of Go...
This version of CLI is only compatible with Angular versions
预览安卓xml布局文件提示 This version of the rendering library is more recent than your version of ADT plug-
This version of ChromeDriver only supports Chrome version 93 Current browser version is 95.0.4638.54