I hit this error after installing wget from Homebrew. The install failed, and all of a sudden the php binary threw this at me whenever I ran it.
dyld[23334]: Library not loaded: /usr/local/opt/libunistring/lib/libunistring.2.dylib
Referenced from: /usr/local/Cellar/libidn2/2.3.4/lib/libidn2.0.dylib
Reason: tried: '/usr/local/opt/libunistring/lib/libunistring.2.dylib' (no such file), '/usr/local/lib/libunistring.2.dylib' (no such file), '/usr/lib/libunistring.2.dylib' (no such file), '/usr/local/Cellar/libunistring/1.1/lib/libunistring.2.dylib' (no such file), '/usr/local/lib/libunistring.2.dylib' (no such file), '/usr/lib/libunistring.2.dylib' (no such file)Library not loaded: /usr/local/opt/libtiff/lib/libtiff.5.dylib
Referenced from: /usr/local/Cellar/gd/2.3.3_4/lib/libgd.3.dylib
Reason: tried: '/usr/local/opt/libtiff/lib/libtiff.5.dylib' (no such file), '/usr/local/lib/libtiff.5.dylib' (no such file), '/usr/lib/libtiff.5.dylib' (no such file), '/usr/local/Cellar/libtiff/4.6.0/lib/libtiff.5.dylib' (no such file), '/usr/local/lib/libtiff.5.dylib' (no such file), '/usr/lib/libtiff.5.dylib' (no such file)
[1] 23334 abort phpI don't really know where it came from, but I reinstalled the libidn2 and gd libraries and after that php worked again.
brew install libidn2 gdWorth remembering: with this kind of error, reinstall the libraries listed under Referenced from: ...
