Grep:this version of PCRE isn't compiled with PCRE_UTF8 support

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.