I have Rails 3.2.9 and Ruby1.9.3p327 and when I try to run the command “rails console” it returns the following error:
/home/humberto/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/irb/completion.rb:9:in `require': cannot load such file -- readline (LoadError)
All the posts about this error propose the solution to uninstall and reinstall ruby, but that does not works for me. Anyone know how to solve it?
install libreadline6 libreadline6-dev libraries.
on ubuntu use:
sudo apt-get install libreadline6 libreadline6-devthen reinstall ruby. i would recommend running
rvm cleanup allbefore reinstalling ruby. just in case.Also take a look to similar question with working answer. install ruby 1.9.3 using rvm on ubuntu