The PCRE package contains Perl Compatible Regular Expression libraries. These are useful for implementing regular expression pattern matching using the same syntax and semantics as Perl 5.
Development versions of BLFS may not build or run some packages properly if LFS or dependencies have been updated since the most recent stable versions of the books.
Download (HTTP): https://sourceforge.net/projects/pcre/files/pcre/8.45/pcre-8.45.tar.bz2
Download MD5 sum: 4452288e6a0eefb2ab11d36010a1eebb
Download size: 1.5 MB
Estimated disk space required: 23 MB (with tests)
Estimated build time: 0.3 SBU (with tests)
Install PCRE by running the following commands:
./configure --prefix=/usr \ --docdir=/usr/share/doc/pcre-8.45 \ --enable-unicode-properties \ --enable-pcre16 \ --enable-pcre32 \ --enable-pcregrep-libz \ --enable-pcregrep-libbz2 \ --enable-pcretest-libreadline \ --disable-static && make
To test the results, issue: make check.
Now, as the root
user:
make install
--enable-unicode-properties
: This switch enables
Unicode properties support and includes the code for handling UTF-8/16/32
character strings in the library. You need this switch if you are going to
build GLib-2.78.1.
--enable-pcre16
: This switch enables 16 bit
character support.
--enable-pcre32
: This switch enables 32 bit
character support.
--enable-pcregrep-libz
: This switch adds
support to pcregrep to read
.gz
compressed files.
--enable-pcregrep-libbz2
: This switch adds
support to pcregrep to read
.bz2
compressed files.
--enable-pcretest-libreadline
: This switch adds line
editing and history features to pcretest 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.