I installed ruby on my Mac OSX High Sierra
and am running into issues now with my php installation for some reason. I'm on php 7.1
.
Following this (also here) Github suggestion, I tried
brew update && brew reinstall php71
While installing, it broke at
==> 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
With error:
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]`
Typing in php
into terminal throws the same error.
Other things I've tried:
- I thought perhaps it wasn't linked, so I also tried:
brew unlink libldap && brew link libldap
- butlibldap
is not supported by Homebrew - Then here, while unrelated to postgres, it does discuss the issue of
libldap
and says to install viabrew install openldap
(I guesslibldap
is referred to asopenldap
to Homebrew) - this installed fine but didn't resolve the issue
How can I fix this?