Objective:
The company server has a problem after the migration, and when grep uses regular expressions, it always prompts grep:this version of PCRE is not compiled with Pcre_utf8 Support,pcre as a function library of regular expressions. Make it annoying if you don't correct it. I am the source of the installation. So when recompiling, add the option to support Utf-8.
Steps:
(1) Uninstalling Prce
If it is RPM package, Direct Rpm-qa | grep prce or Rpm-e pcre--nodeps on it, I use the source package compiled installation.
[Email protected] pcre]# Cd/pcre
[email protected] pcre]# make Uninstall
(2) See what options are available for uts-8 support
[Email protected] pcre]# Cd/pcre
[Email protected] pcre]#/configure--help
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/83/A6/wKiom1d5xECjNnm7AAALmlnuSe4772.png "title=" Sogou 20160704100403.png "alt=" Wkiom1d5xecjnnm7aaalmlnuse4772.png "/>
(3) Recompile
[Email protected] pcre]#/configure--enable-utf8
[[email protected] pcre]# make && make install
(4) Verification
This is not the time to add
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/83/A5/wKioL1d5xj3QWKmOAAAWx2EO6jo253.png "title=" Sogou 20160704101237.png "alt=" Wkiol1d5xj3qwkmoaaawx2eo6jo253.png "/>
This is recompiled and will not show that line again
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/83/A6/wKiom1d5xYyzShRIAAANePxJrow019.png "style=" float: none; "title=" Sogou 20160704100938.png "alt=" Wkiom1d5xyyzshriaaanepxjrow019.png "/>
This article is from the "Court of the Odd Tree" blog, please be sure to keep this source http://zhangdl.blog.51cto.com/11050780/1795507
Grep:this version of PCRE isn't compiled with PCRE_UTF8 support