Compilation of brotli for nginx fails since version 1.27.0 on Rocky Linux 8

Kevin Weis nginx-4dk5spqe at compilenix.org
Tue Sep 3 18:57:30 UTC 2024


Hey Nikolaos,
I was able to reproduce your exact error and find a solution that should 
meet your needs, using the current Rocky Linux 8 container image from 
https://hub.docker.com/_/rockylinux with the image id of c79048e50f5f.

My solution in short: Install the package `brotli-devel`.

Here are the exact shell commands, which made your final `make modules` 
command succeed for me:

docker run -it rockylinux:8 bash
dnf makecache
dnf install -y git wget gcc make pcre2-devel zlib-devel brotli-devel
cd / && git clone https://github.com/google/ngx_brotli.git
cd ngx_brotli && git submodule update --init && cd /
wget https://nginx.org/download/nginx-1.27.1.tar.gz && tar zxvf 
nginx-1.27.1.tar.gz
cd nginx-1.27.1
./configure --with-compat --add-dynamic-module=../ngx_brotli
make modules

Hope this helps :)


Kind regards,

Kevin | CompileNix


More information about the nginx mailing list