Skip to content

PCRE2 compatable with ARM Ubuntu, or Raspberry Pi 4 #220

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Danrancan opened this issue Mar 30, 2023 · 5 comments
Closed

PCRE2 compatable with ARM Ubuntu, or Raspberry Pi 4 #220

Danrancan opened this issue Mar 30, 2023 · 5 comments

Comments

@Danrancan
Copy link

I am trying to compile the Modsecurity Connector module, and it requires PCRE2 running Ubuntu 20.04 server on Raspberry Pi 4. When I try to configure the connector module i get:
configure: PCRE2 library was not found
There don't seem to be any Ubuntu ARM packages that fullfill this request. So is there any way for me to get the PCRE2 Library onto my Raspberry Pi Ubuntu Server so I can compile that module? If there is no binary, then is it possible to compile an arm library on my Ubuntu Server for the Raspberry pi? Any help, tips, or advice appreciated in advance.

@PhilipHazel
Copy link
Collaborator

PCRE2 is just a set of standard C code. Assuming you have a C compiler and library on your Pi you should be able to compile it.
Download the tarball of the latest release from GitHub and read the README.

@JetXujing
Copy link
Contributor

configure: PCRE2 library was not found
Generally, this type of problem is not related to the corresponding package. You only need to install the corresponding package. If no package is available, you need to compile the package. If the compilation is faulty, the compatibility problem may be caused.

@zherczeg
Copy link
Collaborator

The comment above still stands. Compile it manually form git / tarball.

@BrianInglis
Copy link

I am trying to compile the Modsecurity Connector module, and it requires PCRE2 running Ubuntu 20.04 server on Raspberry Pi 4. When I try to configure the connector module i get: configure: PCRE2 library was not found There don't seem to be any Ubuntu ARM packages that fullfill this request. So is there any way for me to get the PCRE2 Library onto my Raspberry Pi Ubuntu Server so I can compile that module? If there is no binary, then is it possible to compile an arm library on my Ubuntu Server for the Raspberry pi? Any help, tips, or advice appreciated in advance.

You need to install the PCRE2 development library libpcre2-dev which is available for arch armhf from repo focal-updates on your preferred local Ubuntu mirror; you may also want to install utilities package pcre2-utils.
Development library packages contain the package config files, scripts, source headers, debug libraries, library docs and API man pages, required to build programs with this library.

@PhilipHazel
Copy link
Collaborator

I am closing this issue as it seems to be resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants