wordfence-cli icon indicating copy to clipboard operation
wordfence-cli copied to clipboard

Docker image build fails on Mac M4 and Linux KDE Neon

Open giancarlomosso opened this issue 2 months ago • 2 comments

Hello everybody, building the docker image as explained in the installation instructions fails on Mac M4 and on Linux KDE Neon (operating systems details below). The error is that the libpcre3 package is not found (complete error log attached). The image is successfully built if I replace libpcre3 with libpcre2-8-0, but I don't know if this version is compatible with Wordfence.

My Mac machine:

  • processor Apple M4
  • operating system macOS Sequoia version 15.6.1
  • Docker version 28.3.2

My Linux KDE Neon machine:

  • processor Intel Core i7-10510U
  • KDE plasma version 6.4.5
  • Linux kernel version: 6.14.0-33-generic (64 bit)
  • Docker version 28.5.0

Please let me know if you need additional information.

Thank you for your attention.

Best, Giancarlo

build.log

giancarlomosso avatar Oct 21 '25 13:10 giancarlomosso

@giancarlomosso The versioning of the PCRE library is a bit confusing. libpcre3 is actually the older version (compatible with the original PCRE API) whereas libpcre2 is a newer version with an updated API. Wordfence CLI targets the older API at present to provide broader compatibility, but with Debian removing libpcre3 in Trixie (which will also likely affect downstream distros, such as Ubuntu) the older version of the library will become less broadly available.

We may need to migrate CLI to PCRE 2 or add support for both API's, but it's a fairly involved change either way. In the meantime, you may want to consider using Vectorscan (which is available on Debian Trixie) instead of PCRE. I'll keep this case open for adding PCRE 2 support and will look at getting it scheduled for an upcoming release.

akenion avatar Oct 22 '25 14:10 akenion

Thank you a lot for your reply @akenion. When I'll need again to build the image, I'll try with Vectorscan, thank you for your suggestion

giancarlomosso avatar Oct 23 '25 11:10 giancarlomosso