我在我的Mac OSX High Sierra上安裝了
ruby,由于某些原因我現在遇到問題.我在
PHP 7.1上.
遵循this(也是here)Github的建議,我試過了
brew update&& brew重新安裝php71
在安裝時,它突破了
==> Pouring [email protected]_sierra.bottle.tar.gz
==> /usr/local/Cellar/[email protected]/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/[email protected]/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 [email protected]`
在php中鍵入終端會引發同樣的錯誤.
我試過的其他事情:
>我想也許它沒有聯系,是以我也試過:brew unlink libldap&& brew連結libldap – 但Homebrew不支援libldap
>然後here,雖然與postgres無關,但它确實讨論了libldap的問題并說通過brew install openldap安裝(我猜libldap被稱為openldap to Homebrew) – 這個安裝正常但沒有解決問題
我怎樣才能解決這個問題?