dyld: Library not loaded: /usr/local/opt/readline/lib/libreadline.7.dylib
Table of Contents
1 启动时报错
1.1 Clisp
1.1.1 dyld: Library not loaded: /usr/local/opt/readline/lib/libreadline.7.dylib
- 场景 MAC 操作系统, 登录Common Lisp 环境。
-
错误信息
user:~ localhost$ clisp dyld: Library not loaded: /usr/local/opt/readline/lib/libreadline.7.dylib Referenced from: /usr/local/Cellar/clisp/2.49_1/lib/clisp-2.49/base/lisp.run Reason: image not found Abort trap: 6
- 原因 homebrew 将libhistory 更新至8.0 . 而很多软件仍没有更新。
-
解决方法
sudo brew link readline --force
如果不行,执行下面的命令:
cd /usr/local/opt/readline/lib/; ln -s libreadline.dylib libreadline.7.dylib
该方法与原因适用于大多数的相同的报错场景。
Created: 2019-06-16 Sun 19:54