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

もっさん先輩
apt-get install -y --no-install-recommends libpng-dev
シチュエーション
「docker-php-ext-install gd」を実行したところ、「No package ‘libpng’ found」のエラーが表示れた。
docker-php-ext-install gd
checking for libpng... no
configure: error: Package requirements (libpng) were not met:
No package 'libpng' 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 PNG_CFLAGS
and PNG_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.