Anyone know why zlib is not included in the Alpine nginx packages?

2 posts / 0 new
Last post
#1 Mon, 2017-05-01 04:05
WebDev
  • WebDev's picture
  • Offline
  • Last seen: 2 months 3 weeks ago
  • Joined: 2016-04-30

Hi all,

Normally nginx's configure script includes zlib like so:

--with-zlib=../zlib-1.2.11

Basically, it's just pointing nginx to wherever zlib is installed. None of the Alpine nginx packages include this, which is confusing. Anyone know why?

For example, here's the nginx build script from from the 3.5 branch: https://git.alpinelinux.org/cgit/aports/tree/main/nginx/APKBUILD?h=3.5-stable

Mon, 2017-05-29 17:38
Franklin Yu
  • Franklin Yu's picture
  • Offline
  • Last seen: 10 months 6 days ago
  • Joined: 2017-03-12

AFAIK, Nginx compiles with Zlib by default; --with-zlib flag is used only if Zlib is not in the library path (like /lib and /usr/lib), that is, a custom Zlib. Note that Nginx package has zlib-dev as compile-time depend. It doesn't need Zlib library as runtime depends since it is already available in fresh Alpine.

Log in or register to post comments