Services and User Management

On an Ubuntu system with gcc and make already installed, running ./configure for a source tarball stops with the error "zlib.h: No such file or directory". Which action resolves the error?

Show the answer

Correct answerA. sudo apt install zlib1g-dev

zlib.h is a header file shipped in the zlib1g-dev development package, which the build needs. zlib1g is tempting, but it holds only the runtime library, with no headers. build-essential supplies the compiler toolchain, which is already present.