readlineのバージョンが上がってたでござるの巻き

個人開発したアプリの宣伝
目的地が設定できる手帳のような使い心地のTODOアプリを公開しています。
Todo with Location

Todo with Location

  • Yoshiko Ichikawa
  • Productivity
  • Free

スポンサードリンク

ちょっと必要があってpsqlを使おうとしたら...

$ heroku pg:psql
--> Connecting to postgresql-round-81223
dyld: Library not loaded: /usr/local/opt/readline/lib/libreadline.7.dylib
  Referenced from: /usr/local/bin/psql
  Reason: image not foun

なんじゃこりゃ??

で調べてみるとcurrentのreadlineのバージョンが合ってないみたい。

解決

インストール済みのreadlineバージョンを確認

$ brew info readline
...
/usr/local/Cellar/readline/7.0.3_1 (46 files, 1.5MB)
  Poured from bottle on 2017-10-28 at 11:12:31
/usr/local/Cellar/readline/8.0.0_1 (48 files, 1.5MB)
  Poured from bottle on 2019-08-22 at 17:59:12
...

僕の場合は7.0.3_1が入っていたので、こちらに合わす。

$ brew switch readline 7.0.3_1

これでとりあえずは解決したのかな?