re2-2024-07-02

Introduction to re2

The re2 package provides a regular expression library.

Package Information

re2 Dependencies

Required

CMake and Abseil-cpp

Installation of re2

Install re2 by running the following commands:

mkdir build &&
cd    build &&

cmake -D CMAKE_INSTALL_PREFIX=/usr \
      -D CMAKE_BUILD_TYPE=Release  \
      -D BUILD_SHARED_LIBS=ON      \
      -G Ninja .. &&

ninja

Now, as the root user:

ninja install

Command Explanations

-D BUILD_SHARED_LIBS=ON: This parameter builds shared versions of the libraries provided by this package instead of static libraries.

Contents

Installed Programs: None
Installed Libraries: libre2.so
Installed Directories: /usr/include/re2 and /usr/lib/cmake/re2

Short Descriptions

libre2.so

provides regular expression engine functions