Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby Ruby on Rails 5 Basics Using the Rails Console Launching Rails console

Brian Patterson
Brian Patterson
19,588 Points

Getting an error when I type bin/rails console

I am getting the following error when I type the command above

Running via Spring preloader in process 4981
/Users/briankaty1/.rvm/gems/ruby-2.3.1@global/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:293:in `require': dlopen(/Users/briankaty1/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/x86_64-darwin16/readline.bundle, 9): Library not loaded: /usr/local/opt/readline/lib/libreadline.6.dylib (LoadError)
  Referenced from: /Users/briankaty1/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/x86_64-darwin16/readline.bundle
  Reason: image not found - /Users/briankaty1/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/x86_64-darwin16/readline.bundle

1 Answer

Jay McGavren
STAFF
Jay McGavren
Treehouse Teacher

I see "darwin" in the output above, so I'm guessing you're running MacOS... I Googled for "rails console library not loaded libreadline" and found this Stack Overflow answer which may help you: http://stackoverflow.com/questions/25591527/rails-console-doesnt-load-due-to-libreadline