0
votes

Facing error while upgraded homebrew

dyld: Library not loaded: /usr/local/opt/openldap/lib/libldap-2.4.2.dylib Referenced from: /usr/local/bin/php Reason: image not found Abort trap: 6

2
Shouldn't this be asked in Super User`U. Windl

2 Answers

0
votes

try this command again:

brew install openldap libiconv
0
votes

You're going to have to run brew install openldap libiconv

For compilers to find libiconv you may need to set:

export LDFLAGS="-L/usr/local/opt/libiconv/lib"

export CPPFLAGS="-I/usr/local/opt/libiconv/include"

Look out and see if openldap is already installed and run brew upgrade openldap

If you need to have [email protected] first in your PATH, run:

echo 'export PATH="/usr/local/opt/[email protected]/bin:$PATH"' >> ~/.zshrc
echo 'export PATH="/usr/local/opt/[email protected]/sbin:$PATH"' >> ~/.zshrc

Finally run brew services start [email protected]