我不是Homebrew专家,但我认为它在2016年9月15日之后的某个时间点已将我从readline版本6.x升级到7.0 :
eat@eric-macbook:Homebrew$ brew info readline
readline: stable 7.0 (bottled) [keg-only]
Library for command-line editing
https://tiswww.case.edu/php/chet/readline/rltop.html
/usr/local/Cellar/readline/7.0 (45 files, 2M)
Run Code Online (Sandbox Code Playgroud)
这给我的9.4.5 Homebrew版本的Postgresql带来了麻烦(出于可比性的原因,我需要较旧的9.4):
eat@eric-macbook:~$ psql --version
dyld: Library not loaded: /usr/local/opt/readline/lib/libreadline.6.dylib
Referenced from: /usr/local/Cellar/postgresql/9.4.5/bin/psql
Reason: image not found
Trace/BPT trap: 5
Run Code Online (Sandbox Code Playgroud)
不幸的是,我无法在Homebrew上找到6.x版本的readline来恢复 - 只有7.0似乎可用(?).
我的问题是双重的:
先感谢您!