相关疑难解决方法(0)

在Homebrew中返回readline版本6.x来修复Postgresql?

我不是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似乎可用(?).

我的问题是双重的:

  • readline版本是否与我的postgres/psql问题不匹配?
  • 如果是这样,我如何使用Homebrew返回6.x来纠正问题?

先感谢您!

postgresql homebrew readline

50
推荐指数
3
解决办法
1万
查看次数

标签 统计

homebrew ×1

postgresql ×1

readline ×1