user3068051
user3068051

Reputation: 13

Ruby IRB - Readline failing to be required

I am on a Mac OSx 10.8.

I was an idiot and deleted my opt directory and removed it from trash. I reinstalled Ruby and openssl via homebrew. I keep getting the error below when I type 'irb'

==> irb Readline was unable to be required, if you need completion or history install readline then reinstall the ruby. You may follow 'rvm notes' for dependencies and/or read the docs page https://rvm.io/packages/readline/ . Be sure you 'rvm remove X ; rvm install X' to re-compile your ruby with readline support after obtaining the readline libraries.

I looked at the docs, I tried to install with rvm. I can't figure out how autolibs is working to get it to install. I reinstalled ruby 2 times with homebrew. Checked folder permissions and made it 777. I am pretty much lost. Without redline, the 'history' is not working in IRB so using an up arrow or back arrow doesn't work.

Thoughts?

Upvotes: 1

Views: 1213

Answers (1)

Jon Kern
Jon Kern

Reputation: 3235

I discovered this error when going to IRB and not being able to have any command line history.

To remedy, I did the following:

rvm pkg install readline

And then I followed RVM instruction to:

rvm reinstall all --force

(n.b.: Before I did the reinstall, I used rvm list rubies to show me everything installed, and took the opportunity to prune older rubies (and their gems) by using rvm remove <ruby> and cleaning things up)

Upvotes: 0

Related Questions