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
Clean previous build:
make distclean
Prepare pcre2 for compilation:
CC="gcc -m32" CXX="g++ -m32" \ ./configure --prefix=/usr \ --libdir=/usr/lib32 \ --host=i686-pc-linux-gnu \ --enable-unicode \ --enable-jit \ --enable-pcre2-16 \ --enable-pcre2-32 \ --enable-pcre2grep-libz \ --enable-pcre2grep-libbz2 \ --enable-pcre2test-libreadline \ --disable-static
Compile the package:
make
Install the package:
make DESTDIR=$PWD/DESTDIR install cp -Rv DESTDIR/usr/lib32/* /usr/lib32 rm -rf DESTDIR
Clean previous build:
make distclean
Prepare pcre2 for compilation:
CC="gcc -mx32" CXX="g++ -mx32" \ ./configure --prefix=/usr \ --libdir=/usr/libx32 \ --host=x86_64-pc-linux-gnux32 \ --enable-unicode \ --enable-jit \ --enable-pcre2-16 \ --enable-pcre2-32 \ --enable-pcre2grep-libz \ --enable-pcre2grep-libbz2 \ --enable-pcre2test-libreadline \ --disable-static
Compile the package:
make
Install the package:
make DESTDIR=$PWD/DESTDIR install cp -Rv DESTDIR/usr/libx32/* /usr/libx32 rm -rf DESTDIR