
ショコラ
「No package ‘zlib’ found」と表示された
「zlib1g-dev」パッケージでキメマス。

もっさん先輩
apt-get install -y --no-install-recommends zlib1g-dev
シチュエーション
「docker-php-ext-install gd」を実行したところ、「No package ‘zlib’ found」のエラーが表示れた。
docker-php-ext-install gd
checking for zlib... no
configure: error: Package requirements (zlib) were not met:
No package 'zlib' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables ZLIB_CFLAGS
and ZLIB_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.