The pcre2 package contains a new generation of the Perl Compatible Regular Expression libraries.
Prepare pcre2 for compilation:
./configure --prefix=/usr \ --docdir=/usr/share/doc/pcre2-10.45 \ --enable-unicode \ --enable-jit \ --enable-pcre2-16 \ --enable-pcre2-32 \ --enable-pcre2grep-libz \ --enable-pcre2grep-libbz2 \ --enable-pcre2test-libreadline \ --disable-static
The meaning of the new configure options:
--enable-unicode
This option enables Unicode support and includes the functions for handling UTF-8/16/32 character strings in the library.
--enable-jit
This option enables Just-in-time compiling, which can greatly speed up pattern matching.
--enable-pcre2-16
This option enables 16 bit character support.
--enable-pcre2-32
This option enables 32 bit character support.
--enable-pcre2grep-libz
This option adds support for reading .gz compressed files to pcre2grep.
--enable-pcre2grep-libbz2
This option adds support for reading .bz2 compressed files to pcre2grep.
--enable-pcre2test-libreadline
This option adds line editing and history features to the pcre2test program.
Compile the package:
make
To test the results, issue:
make check
Install the package:
make install