dyld[45923]: Library not loaded: /usr/local/opt/libavif/lib/libavif.15.dylib
Referenced from: <735019D8-AF6E-3CD1-9AD4-3BE47CB22D4F> /usr/local/Cellar/gd/2.3.3_5/lib/libgd.3.dylib
Reason: tried: ‘/usr/local/opt/libavif/lib/libavif.15.dylib’ (no such file), ‘/System/Volumes/Preboot/Cryptexes/OS/usr/local/opt/libavif/lib/libavif.15.dylib’ (no such file), ‘/usr/local/opt/libavif/lib/libavif.15.dylib’ (no such file), ‘/usr/local/lib/libavif.15.dylib’ (no such file), ‘/usr/lib/libavif.15.dylib’ (no such file, not in dyld cache), ‘/usr/local/Cellar/libavif/1.0.1/lib/libavif.15.dylib’ (no such file), ‘/System/Volumes/Preboot/Cryptexes/OS/usr/local/Cellar/libavif/1.0.1/lib/libavif.15.dylib’ (no such file), ‘/usr/local/Cellar/libavif/1.0.1/lib/libavif.15.dylib’ (no such file), ‘/usr/local/lib/libavif.15.dylib’ (no such file), ‘/usr/lib/libavif.15.dylib’ (no such file, not in dyld cache)
I updated MacOS to Sonoma and I had problem with XAMPP. so, I reinstalled XAMPP. Now this error is showing. I cant use PHP and Composer.
2
Answers
I had the same issue after installing macOS Ventura.
Try to reinstall gd :
I was having the same issue and discovered (with
brew update
) that there were a lot of outdated packages on my macOS station. Here is what fixed it: