20
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

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

Last updated at Posted at 2019-12-31

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

鬼車(oniguruma) とは

正規表現ライブラリです。
それぞれの正規表現オブジェクトごとに異なる文字エンコーディングを指定できる特徴があります。

参考

20
6
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
20
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?