PHP配置错误DBA:找不到必要的头文件

你好我有一台Centos 7机器。</ p>

我决定从 来源apache,mysql,php。</ p>

我已经从源码apache&amp; mysql包(要求:使用apr(source),apr-util(source),pcre-devel(yum安装),perl(yum安装))。 现在,我试图安装php并且配置文件在安装的扩展部分停止并说:</ p>

  configure:error:DBA:找不到必要的头文件\  n </ code> </ pre> 

1)我该怎么做才能修复它?</ p>

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

2)是否有任何替换包?</ p>

还有一个问题: </ p>

3)如何让php(7.0.3)在./configure?


</ div>中安装所有扩展名

展开原文

原文

hello i have a Centos 7 machine.

i decided to install from source the apache,mysql,php.

i already install from source apache & mysql packages (requirements: with apr(source),apr-util(source),pcre-devel(yum installed),perl(yum installed)). now, i trying to install php and the configuration file stops at extensions section of install and says:

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

1) what should i do to repair it?

i saw on internet that i can fix it with db4-devel, the problem is that theres no db4-devel in CentOS 7.

2) theres any replacement package for this?

and one more question:

3) how can i make php(7.0.3) install all extensions in ./configure?

1个回答



尝试</ p>

  apt-get install libdb-dev 
</ code> </ pre>

至于扩展(如果你有参考安装):执行 php-config </ code>并使用那里的configure-options。</ p>
\ n

否则你必须考虑你想要的扩展名并将它们添加到configure-script中。</ p>
</ div>

展开原文

原文

Try

apt-get install libdb-dev

As for extensions (if you have a reference installation): Execute php-config and use the configure-options from there.

Otherwise you have to think of which extensions you want and add them to the configure-script.

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问