The pcre2 package contains a new generation of the Perl Compatible Regular Expression libraries.
Prepare pcre2 for compilation:
./configure --prefix=/usr --disable-static \
--docdir=/usr/share/doc/pcre2-10.47 \
--enable-jit --enable-unicode \
--enable-pcre2-16 \
--enable-pcre2-32 \
--enable-pcre2grep-libz \
--enable-pcre2grep-libbz2 \
--enable-pcre2test-libreadlineThe meaning of the new configure options:
--enable-unicodeThis option enables Unicode support and includes the functions for handling UTF-8/16/32 character strings in the library.
--enable-jitThis option enables Just-in-time compiling, which can greatly speed up pattern matching.
--enable-pcre2-16This option enables 16 bit character support.
--enable-pcre2-32This option enables 32 bit character support.
--enable-pcre2grep-libzThis option adds support for reading .gz compressed files to pcre2grep.
--enable-pcre2grep-libbz2This option adds support for reading .bz2 compressed files to pcre2grep.
--enable-pcre2test-libreadlineThis 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