[Solved] Ubuntu Error: ./configure: error: the HTTP gzip module requires the zlib library.

Problems encountered in compiling and executing nginx source code:

./configure: error: the HTTP gzip module requires the zlib library.

Cause: lack of zlib
solution:

 apt install zlib1g
 apt install zlib1g-dev

Read More: