PCRE (perl Compatible Regular Expressions) is a lightweight Perl library of functions, including a Perl-compatible regular expression library. It is much smaller than a regular expression library like boost. The pcre is very easy to use and also powerful, with performance exceeding the POSIX regular expression library and some classic regular expression libraries.
1. Pcre current version is 8.36, can click here to download.
2. Use TAR-ZXVF pcre-8.36.tar.gz for decompression.
3. Run Chmod-r 777/pcre-8.36 to grant full read and write permissions to the current folder.
4. Switch to the/pcre-8.36 directory and run the./configure for Pcre initialization configuration, a large stack of output information is printed on the console.
5. Perform a make operation to compile.
[[Email protected] pcre-8.36]# makerm -f pcre_chartables.cln -s ./pcre_ chartables.c.dist pcre_chartables.cmake all-ammake[1]: entering directory '/opt /nginx/pcre-8.36 ' CC libpcre_la-pcre_byte_order.lo CC libpcre_la-pcre_compile.lo CC libpcre_la-pcre_config.lo CC Libpcre_la-pcre_dfa_exec.lo cc libpcre_la-pcre_exec.lo CC libpcre_la-pcre_fullinfo.lo CC libpcre_la-pcre_get.lo CC Libpcre_la-pcre_globals.lo cc libpcre_la-pcre_jit_ Compile.lo cc libpcre_la-pcre_maketables.lo cc libpcre_la-pcre_newline.lo cc libpcre_la-pcre_ Ord2utf8.lo cc libpcre_la-pcre_refcount.lo cc libpcre_la-pcre_string_utils.lo CC libpcre_la-pcre_study.lo CC libpcre_la-pcre_tables.lo cc libpcre_la-pcre_ucd.lo CC libpcre_la-pcre_valid_utf8.lo CC libpcre_la-pcre_version.lo CC libpcre_la-pcre_xclass.lo cc libpcre_la-pcre_ Chartables.lo ccld libpcre.la cc libpcreposix_la-pcreposix.lo CCLD libpcreposix.la CXX libpcrecpp_la-pcrecpp.lo cxx libpcrecpp_la-pcre_scanner.lo CXX libpcrecpp_la-pcre_stringpiece.lo CXXLD libpcrecpp.la CC pcretest-pcretest.o CC pcretest-pcre_printint.o CCLD pcretest CC pcregrep-pcregrep.o Ccld pcregrep cxx pcrecpp_ unittest-pcrecpp_unittest.o cxxld pcrecpp_unittest cxx pcre_scanner_unittest-pcre_scanner_unittest.o cxxld pcre_scanner_unittest Cxx pcre_stringpiece_unittest-pcre_stringpiece_unittest.o cxxld pcre_stringpiece_unittestmake[1]: Leaving directory '/opt/nginx/ pcre-8.36 '
6. Run [[e-mail protected] pcre-8.36]# make install to install, Pcre installation is complete.
[[email protected] pcre-8.36]# make install
This article is from the "Dust Wind with the Sky" blog, please be sure to keep this source http://favccxx.blog.51cto.com/2890523/1620160
Install Pcre under Linux