Shashank
Shashank

Reputation: 1

How to solve error of Library not loaded?

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

Upvotes: 0

Views: 2810

Answers (2)

Mbuodile Obiosio
Mbuodile Obiosio

Reputation: 1543

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]

Upvotes: 0

Thai Nguyen Hung
Thai Nguyen Hung

Reputation: 1222

try this command again:

brew install openldap libiconv

Upvotes: 0

Related Questions