docker-php-ext-install curl を実行したらエラーになった

ショコラ
ショコラ

docker-php-ext-install curl を実行したらエラーになった

libcurl4-gnutls-dev」パッケージをインストールしてからキメマス
パッケージがわかりずらかったのかな。

もっさん先輩
もっさん先輩

手順

  1. libcurl4-gnutls-dev をインストールします。
apt-get install -y --no-install-recommends libcurl4-gnutls-dev
  1. docker-php-ext-install curl を実行します。
docker-php-ext-install curl

シチュエーション

docker-php-ext-install curl
checking for libcurl >= 7.29.0... no
configure: error: Package requirements (libcurl >= 7.29.0) were not met:

No package 'libcurl' 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 CURL_CFLAGS
and CURL_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
Scroll to Top