gpt4 book ai didi

PHP配置错误DBA : Could not find necessary header file(s)

转载 作者:太空宇宙 更新时间:2023-11-04 10:40:06 25 4
gpt4 key购买 nike

你好,我有一台 Centos 7 机器。

我决定从源代码安装 apache、mysql、php。

我已经从源代码安装了 apache 和 mysql 包(要求:使用 apr(源代码)、apr-util(源代码)、pcre-devel(已安装 yum)、perl(已安装 yum))。现在,我尝试安装 php,配置文件停在安装的扩展部分并说:

configure: error: DBA: Could not find necessary header file(s)

1) 我应该怎么做才能修复它?

我在网上看到我可以用 db4-devel 修复它,问题是 CentOS 7 中没有 db4-devel。

2) 这个有替换包吗?

还有一个问题:

3) 如何让 php(7.0.3) 在 ./configure 中安装所有扩展?

最佳答案

尝试

apt-get install libdb-dev

至于扩展(如果您有引用安装):执行 php-config 并使用那里的配置选项。

否则,您必须考虑需要哪些扩展并将它们添加到配置脚本中。

关于PHP配置错误DBA : Could not find necessary header file(s),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35516940/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com