re2-2025-11-05

#### Supplemental Linux® From Scratch - Version 13.0

### Chapter 2. General Libraries

- Prev

  QR-Code-generator-1.8.0

- Next

  sdbus-c++-2.2.1

- Up
- Home

# re2-2025-11-05

## Introduction to re2

The re2 package provides a regular expression library.

- Download: https://github.com/google/re2/releases/download/2025-11-05/re2-2025-11-05.tar.gz

### 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
Installed Directories: /usr/include/re2 and /usr/lib/cmake/re2

### Short Descriptions

`libre2` | provides regular expression engine functions

- Prev

  QR-Code-generator-1.8.0

- Next

  sdbus-c++-2.2.1

- Up
- Home