无法从源代码构建 PHP 8.0.19 - 没有包'sqlite3”;成立
P粉214089349
P粉214089349 2023-12-12 14:38:19
0
1
584

我使用的是 Ubuntu 22.04 LTS。


我尝试从源代码构建 PHP 8.0.19。我是从这里下载的。

我在调用 ./configure 后得到这个

checking for sqlite3 > 3.7.4... no
configure: error: Package requirements (sqlite3 > 3.7.4) 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.

sqlite3 --version 的输出:

3.37.2 2022-01-06 13:25:41 872ba256cbf61d9290b571c0e6d82a20c224ca3ad82971edc46b29818d5dalt1

所以我尝试在没有sqlite3的情况下进行配置

./configure --without-sqlite3

但我仍然遇到同样的错误。

如果我尝试使用 apt-get update && apt-get install sqlite3 安装 sqlite3 我得到:

sqlite3 is already the newest version (3.37.2-2).

我尝试从源代码构建最新的sqlite3版本,但我找到的最新版本是3.38.5.

https://www.sqlite.org/download.html

如何解决?

P粉214089349
P粉214089349

全部回复(1)
P粉755863750

我必须安装libsqlite3-dev

https://stackoverflow.com/a/62155296/4684797

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责声明 Sitemap
PHP中文网:公益在线PHP培训,帮助PHP学习者快速成长!