dyld: Library not loaded: /usr/local/opt/readline/lib/libreadline.7.dylib

环境:macOS

$ sudo /usr/local/opt/php56/sbin/php-fpm

执行后报错提示:

dyld: Library not loaded: /usr/local/opt/readline/lib/libreadline.7.dylib
  Referenced from: /usr/local/opt/php56/sbin/php-fpm
  Reason: image not found

原因是homebrew更新后更新libhistory库,有其他软件没有更新
处理方法:

cd /usr/local/opt/readline/lib/;
ln -s libreadline.dylib libreadline.7.dylib

你可能感兴趣的:(dyld: Library not loaded: /usr/local/opt/readline/lib/libreadline.7.dylib)