dyld: Library not loaded: /usr/local/lib/libpng16.16.dylib with anything php related
问题 Using any php application results in: dyld: Library not loaded: /usr/local/lib/libpng15.15.dylib Referenced from: /usr/local/bin/php Reason: image not found [1] 4494 trace trap php Most of my php applications were installed using homebrew with the exception of composer (installed using curl) I tried removing the the libpng and reinstalling with homebrew to no avail. Next was to switch to latest version of libpng 1.5 as stated in the error message: $ brew info libpng libpng: stable 1.6.10