我正在尝试按照以下说明在 Centos 7 上安装 php:https://www.php.net/manual/en/install.unix.nginx.php。
我的nginx版本:nginx/1.19.0
我从下载了 php-7.4.6.tar.gzhttps://www.php.net/downloads但
在步骤:
./configure --enable-fpm --with-mysqli
我收到这个错误:
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:
# sqlite3
SQLite version 3.7.17
那么,我应该如何设置环境变量(在配置文件中?)?
谢谢!
要从源代码进行编译,依赖项需要作为可链接库提供(有时还需要新程序用于构建的标头)。-devel
软件包安装这些库,因此要从源代码构建具有 SQLite 支持的 PHP,您需要安装sqlite-devel
.
如果您的 Ubuntu >= 20.04,请安装此软件包libsqlite3-dev
满足开发依赖/包的要求。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)