我在我的Mac OSX High Sierra上安装了
ruby,由于某些原因我现在遇到问题.我在
PHP 7.1上.
遵循this(也是here)Github的建议,我试过了
brew update&& brew重新安装php71
在安装时,它突破了
==> Pouring php@7.1-7.1.23.high_sierra.bottle.tar.gz
==> /usr/local/Cellar/php@7.1/7.1.23/bin/pear config-set php_ini /usr/local/etc/php/7.1/php.ini system
有错误:
dyld: Library not loaded: /usr/local/opt/openldap/lib/libldap-2.4.2.dylib
Referenced from: /usr/local/Cellar/php@7.1/7.1.23/bin/php
Reason: image not found
Warning: The post-install step did not complete successfully
You can try again using `brew postinstall php@7.1`
在php中键入终端会引发同样的错误.
我试过的其他事情:
>我想也许它没有联系,所以我也试过:brew unlink libldap&& brew链接libldap – 但Homebrew不支持libldap
>然后here,虽然与postgres无关,但它确实讨论了libldap的问题并说通过brew install openldap安装(我猜libldap被称为openldap to Homebrew) – 这个安装正常但没有解决问题
我怎样才能解决这个问题?