Quantcast
Channel: PHP7.4タグが付けられた新着記事 - Qiita
Viewing all articles
Browse latest Browse all 113

Docker(Alpine) + Laravel 環境を PHP7.4 にアップデートする際に oniguruma パッケージのビルドエラー

$
0
0

PHP7.4にアップデートしようとしたらDockerのビルド中にエラーが発生しました。

環境

  • Alpine 3.11
  • PHP 7.4

ビルドエラー

checking for oniguruma... no
configure: error: Package requirements (oniguruma) were not met:

Package 'oniguruma', required by 'virtual:world', not 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 ONIG_CFLAGS
and ONIG_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

対処法

$ apk add --update--no-cache oniguruma-dev

差分: https://github.com/ucan-lab/docker-laravel/pull/38/files

参考


Viewing all articles
Browse latest Browse all 113

Trending Articles