Linux 源码编译 php 遇到缺失 No package 'sqlite3' found 问题
先查找
sqlite
库:
[centos@localhost php-7.4.5]$ yum search sqlite
已加载插件:fastestmirror, langpacks
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Repository contrib is listed more than once in the configuration
Determining fastest mirrors
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
* webtatic: us-east.repo.webtatic.com
=========================================== N/S matched: sqlite ===========================================
apr-util-sqlite.x86_64 : APR utility library SQLite DBD driver
freeradius-sqlite.x86_64 : SQLite support for freeradius
libdbi-dbd-sqlite.x86_64 : SQLite plugin for libdbi
perl-DBD-SQLite.x86_64 : SQLite DBI Driver
sqlite-devel.i686 : Development tools for the sqlite3 embeddable SQL database engine
sqlite-devel.x86_64 : Development tools for the sqlite3 embeddable SQL database engine
sqlite-doc.noarch : Documentation for sqlite
sqlite-tcl.x86_64 : Tcl module for the sqlite3 embeddable SQL database engine
gom.i686 : GObject to SQLite object mapper library
gom.x86_64 : GObject to SQLite object mapper library
sqlite.i686 : Library that implements an embeddable SQL database engine
sqlite.x86_64 : Library that implements an embeddable SQL database engine
名称和简介匹配 only,使用“search all”试试。
发现 sqlite-devel.x86_64
库暂未安装,执行安装即可:
[centos@localhost php-7.4.5]$ sudo yum install -y sqlite-devel.x86_64
问题解决!