The PCRE2 package contains a new generation of the Perl Compatible Regular Expression libraries. These are useful for implementing regular expression pattern matching using the same syntax and semantics as Perl.
This package is known to build and work properly using an LFS-8.3 platform.
Download (HTTP): https://downloads.sourceforge.net/pcre/pcre2-10.31.tar.bz2
Download (FTP): ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre2-10.31.tar.bz2
Download MD5 sum: e0b91c891a3c49050f7fd15de33d0ba4
Download size: 1.6 MB
Estimated disk space required: 19 MB (with tests)
Estimated build time: 0.3 SBU (with tests)
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/pcre2
Install PCRE2 by running the following commands:
./configure --prefix=/usr \ --docdir=/usr/share/doc/pcre2-10.31 \ --enable-unicode \ --enable-jit \ --enable-pcre2-16 \ --enable-pcre2-32 \ --enable-pcre2grep-libz \ --enable-pcre2grep-libbz2 \ --enable-pcre2test-libreadline \ --disable-static && make
To test the results, issue: make check.
Now, as the root
user:
make install
--enable-unicode
: This
switch enables Unicode support and includes the functions for
handling UTF-8/16/32 character strings in the library.
--enable-pcre2-16
: This
switch enables 16 bit character support.
--enable-pcre2-32
: This
switch enables 32 bit character support.
--enable-pcre2grep-libz
:
This switch adds support for reading .gz compressed files to
pcre2grep.
--enable-pcre2grep-libbz2
:
This switch adds support for reading .bz2 compressed files to
pcre2grep.
--enable-pcre2test-libreadline
: This
switch adds line editing and history features to the pcre2test program.
--disable-static
: This
switch prevents installation of static versions of the libraries.
--enable-jit
: this option enables
Just-in-time compiling, which can greatly speed up pattern
matching.
Last updated on 2018-08-21 15:38:20 -0700