PHP8 のインストール中に「No package ‘sqlite3’ found」と表示された

ショコラ
ショコラ

PHP8 のインストール中に「No package ‘sqlite3’ found」と表示された

sqlite-develパッケージでキメマス。

もっさん先輩
もっさん先輩
yum install -y sqlite-devel

シチュエーション

CentOS7 のコンテナに PHP8 をソースからインストールしている。configureコマンドを実行したら「No package ‘sqlite3’ found」のエラーが表示された。

checking for sqlite3 >= 3.7.7... no
configure: error: Package requirements (sqlite3 >= 3.7.7) were not met:

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