Skip to content

Instantly share code, notes, and snippets.

@bazay
Created February 13, 2019 16:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bazay/fe7fd4553cbd4395584e2b1eba2851c7 to your computer and use it in GitHub Desktop.
Save bazay/fe7fd4553cbd4395584e2b1eba2851c7 to your computer and use it in GitHub Desktop.
How to fix readline.bundle not found error from the CLI on Mojave OSX (MAC)

The following error:

/Users/bazay/.rvm/gems/ruby-2.3.4@your_repository/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:274:in `require': dlopen(/Users/bazay/.rvm/rubies/ruby-2.3.4/lib/ruby/2.3.0/x86_64-darwin17/readline.bundle, 9): Library not loaded: /usr/local/opt/readline/lib/libreadline.7.dylib (LoadError)
  Referenced from: /Users/bazay/.rvm/rubies/ruby-2.3.4/lib/ruby/2.3.0/x86_64-darwin17/readline.bundle
  Reason: image not found - /Users/bazay/.rvm/rubies/ruby-2.3.4/lib/ruby/2.3.0/x86_64-darwin17/readline.bundle

When running rails or byebug can be resolved with the following command:

ln -s /usr/local/opt/readline/lib/libreadline.8.dylib /usr/local/opt/readline/lib/libreadline.7.dylib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment