dswsl2016 2015-11-05 21:28
浏览 64
已采纳

PHP没有找到DB2扩展

I have a vagrant box set up for development. It has been running fine for months, but I recently ran vagrant box update since it'd been nagging me to update, and naturally it's now broken.

The problem is with PHP startup. It can't find the DB2 so file:

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20131226/ibm_db2.so' - libdb2.so.1: cannot open shared object file: No such file or directory in Unknown on line 0

However, the file is there:

~$ sudo find / -name '*db2.so'
/usr/lib/php5/20131226/ibm_db2.so

Any idea what's up with this error?

  • 写回答

1条回答 默认 最新

  • dqayok7935 2015-11-16 22:16
    关注

    When I updated my vagrant box the PHP extension was installed correctly but could no longer find the DB2 headers. I had to sudo pecl uninstall ibm_db2 then follow the instructions here to download and install the DB2 headers. Finally I reinstalled the pecl extension using sudo pecl install ibm_db2 and I was back in business.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?