douzong5057 2016-04-28 12:31
浏览 47
已采纳

El capitan是否破坏了我安装的php?

I have tried almost everything to fix this, but nothing helped me, I am using OSX 10.11.4 El Capitan, I have installed homebrew and php55 with it, version 5.5.34. I am using some php extensions along with it, for example pgsql. Once I have upgraded to Capitan I had to solve some problems with apache but it was not a big problem, but for the php, it looks like it stopped loading my extensions. As I kind of noob in this I don't really know what info to share. This is my apache error_lo which is repeating:

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/Cellar/php55/5.5.34/lib/php/extensions/no-debug-non-zts-20121212/php_pgsql.dll' - dlopen(/usr/local/Cellar/php55/5.5.34/lib/php/extensions/no-debug-non-zts-20121212/php_pgsql.dll, 9): image not found in Unknown on line 0
[Thu Apr 28 14:21:12.002839 2016] [mpm_prefork:notice] [pid 27896] AH00163: Apache/2.4.18 (Unix) PHP/5.5.34 configured -- resuming normal operations
[Thu Apr 28 14:21:12.002910 2016] [core:notice] [pid 27896] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'

When I try to go to the extension folder it is not even there, only a folder called build is in the /usr/local/Cellar/php55/5.5.34/lib/php

Can someone please help me?

Thanks in advance

  • 写回答

1条回答 默认 最新

  • dousi0144 2016-04-29 15:02
    关注

    So the solution for installing php --with-pgsql is to install xcode in console first.

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

报告相同问题?

悬赏问题

  • ¥15 我这模型写的不对吗?为什么lingo解出来的下面影子价格这一溜少一个变量
  • ¥50 树莓派安卓APK系统签名
  • ¥15 maple软件,用solve求反函数出现rootof,怎么办?
  • ¥65 汇编语言除法溢出问题
  • ¥15 Visual Studio问题
  • ¥20 求一个html代码,有偿
  • ¥100 关于使用MATLAB中copularnd函数的问题
  • ¥20 在虚拟机的pycharm上
  • ¥15 jupyterthemes 设置完毕后没有效果
  • ¥15 matlab图像高斯低通滤波