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.
          LFS や依存パッケージが本ブックに示す最新安定バージョンでなかった場合には、BLFS 開発版においては、パッケージのビルドや処理実行が適切に行われないことがあります。
ダウンロード (HTTP): https://github.com/PCRE2Project/pcre2/releases/download/pcre2-10.42/pcre2-10.42.tar.bz2
ダウンロード MD5 sum: a8e9ab2935d428a4807461f183034abe
ダウンロードサイズ: 1.7 MB
必要ディスク容量: 24 MB (テスト込み)
概算ビルド時間: 0.4 SBU (テスト込み)
以下のコマンドを実行して PCRE2 をビルドします。
./configure --prefix=/usr                       \
            --docdir=/usr/share/doc/pcre2-10.42 \
            --enable-unicode                    \
            --enable-jit                        \
            --enable-pcre2-16                   \
            --enable-pcre2-32                   \
            --enable-pcre2grep-libz             \
            --enable-pcre2grep-libbz2           \
            --enable-pcre2test-libreadline      \
            --disable-static                    &&
make
        ビルド結果をテストする場合は make check を実行します。
          root ユーザーになって以下を実行します。
        
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:
          このスイッチはスタティックライブラリをインストールしないようにします。
        
          --enable-jit: this option
          enables Just-in-time compiling, which can greatly speed up pattern
          matching.