はじめに
この記事では、PHP7.4のインストール時に発生したエラーとその解決方法を紹介します。
No package ‘oniguruma’ found が発生した場合
checking for oniguruma... no
configure: error: Package requirements (oniguruma) were not met:
No package 'oniguruma' 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.
PHP7.4では鬼車がバンドルされていません。
そのため”No package ‘libxml-2.0’ found”が発生した場合は、libonig-devをインストールする必要があります。
$ sudo apt-get install -y libonig-dev
No package ‘libxml-2.0’ found が発生した場合
configure: error: Package requirements (libxml-2.0 >= 2.7.6) were not met:
No package 'libxml-2.0' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
No package ‘libxml-2.0’ foundが発生した場合は、libxml2-devをインストールします。
$ sudo apt-get install -y libxml2-dev