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
_______________________________________________
nginx mailing list
nginx@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx

Reply via email to