Skip to content

Instantly share code, notes, and snippets.

@aldemira
Last active February 5, 2025 09:36
Show Gist options
  • Select an option

  • Save aldemira/056047d7f9e91999312c79076b71d426 to your computer and use it in GitHub Desktop.

Select an option

Save aldemira/056047d7f9e91999312c79076b71d426 to your computer and use it in GitHub Desktop.
Compiling nginx-otel on debian bookworm
apt-get install nginx-dev
cd /usr/share/nginx/src
./configure --prefix=/usr/share/nginx --conf-path=/etc/nginx/nginx.conf --http-log-path=/var/log/nginx/access.log --error-log-path=stderr --lock-path=/var/lock/nginx.lock --pid-path=/run/nginx.pid --modules-path=/usr/lib/nginx/modules --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --with-compat --with-threads --with-pcre-jit --with-http_ssl_module --with-http_stub_status_module --with-http_realip_module --with-http_auth_request_module --with-http_v2_module --with-http_dav_module --with-http_slice_module
cd /opt
apt-get install -y cmake build-essential libssl-dev zlib1g-dev libpcre3-dev pkg-config libc-ares-dev libre2-dev git
git clone https://github.com/nginxinc/nginx-otel.git
cd nginx-otel
mkdir build && cd build
cmake -DNGX_OTEL_NGINX_BUILD_DIR=/usr/share/nginx/src/objs -DNGX_OTEL_NGINX_DIR=/usr/share/nginx/src ..
make
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment