dqh1992 2016-02-19 23:25
浏览 103

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

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条回答

  • doubi4814 2016-04-26 09:48
    关注

    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.

    评论

报告相同问题?

悬赏问题

  • ¥15 Pwm双极模式H桥驱动控制电机
  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题