Homebrew-core: Library not loaded: /usr/local/opt/readline/lib/libreadline.6.dylib

Created on 11 Oct 2016  路  4Comments  路  Source: Homebrew/homebrew-core

  • [x ] Ran brew update and retried your prior step?
  • [ x] Ran brew doctor, fixed as many issues as possible and retried your prior step?
Warning: Your XQuartz (2.7.8) is outdated.
Please install XQuartz 2.7.9 (or delete it):
  https://xquartz.macosforge.org

Warning: Your Xcode (7.3.1) is outdated.
Please update to Xcode 8.0 (or delete it).
Xcode can be updated from the App Store.

Bug reports:

I can't run bash. When I do I get the following error.

$ bash
  dyld: Library not loaded: /usr/local/opt/readline/lib/libreadline.6.dylib
  Referenced from: /usr/local/bin/bash
  Reason: image not found
Trace/BPT trap: 5

It looks like there is a newer version of libreadline:

$ ls /usr/local/opt/readline/lib/libreadline*
/usr/local/opt/readline/lib/libreadline.7.0.dylib /usr/local/opt/readline/lib/libreadline.a
/usr/local/opt/readline/lib/libreadline.7.dylib   /usr/local/opt/readline/lib/libreadline.dylib

I have tried brew remove readline brew update brew install readline, and this didn't fix it. This all started a few days ago after doing a brew install of gnuplot.

Most helpful comment

You need to upgrade bash ...

All 4 comments

You need to upgrade bash ...

I had no idea bash was linked to brew. Worked though, thank you!
brew upgrade bash

$ brew upgrade
will upgrade all package installed by home-brew.

i tried brew upgrade and that didn't upgrade bash
so i did
brew upgrade bash
and that upgraded bash and now no more errors

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kiendang picture kiendang  路  3Comments

faraazkhan picture faraazkhan  路  3Comments

tejasmanohar picture tejasmanohar  路  3Comments

Steffen911 picture Steffen911  路  3Comments

gregvirgin picture gregvirgin  路  3Comments