I was getting this error trying to start the rails console: error: no such file to load — readline (LoadError). I’m using rvm, rails3, ruby 1.9.2, Ubuntu 10.04.
I tracked down redline in my ruby source ~/.rvm/src/ruby-1.9.2-p0/ext/readline and ran:
ruby extconf.rb
This let me know I was missing these two packages:
libncurses5-dev and libreadline5-dev
sudo apt-get install libncurses5-dev libreadline5-dev
Then run the command from before:
ruby extconf.rb
You should get all passing.
make make install
Rails c now works!
Thank you sir! Solved the exact problem I was having.
this also works with ruby 1.8.7 and rails 2.x
I just spent abt 2 hours trying to solve this problem…thanks much for posting this fix…to me…it also shed some light on methods for troubleshooting future/similar issues
Thank you very much. This text solved my problem.
Thank you! This was a big help! Helped resolve my issue as well
Nice! solved my problem too.
Thank you!
Crappy ubuntu, this one did helped.
Thx a lot.
Thanks mate…:)
Thanks!!!!!
My Ubuntu machine start throwing this error after updating ruby to 1.9.2-136. Took me a while to land here and fix the issue.
Solved for rvm, rails3, ruby 1.8.7, Ubuntu 10.10.
Thank you
I hope this site will help someone with a problem they can’t seem to solve and add to their education.
Thanks a lot! It’s really help
Worked like a charm! I’m also on rvm, rails3, ruby 1.9.2, Ubuntu 10.04.
A big thank you for posting this.
Thanks!
This also fixed ruby-debug19 for me in RVM/Rails 3/Ruby 1.9.2 on Ubuntu 10.04.
Now rails s -u works!
You’re a superstar – solved my problem after hours of looking! Ubuntu 10.04 Ruby 1.9.2-p180 rails 3.0.5
Thanks! That saved me a lot of time
Nice.. this solved my problem..
Thank you, thank you, thank you. Much simpler than having to recompile ruby.
Thanks a lot!!!! from Russia!!!
This fix problem with Ubuntu 11.10 + Rails 3.1.0 + Ruby 1.9.2p290
Thanks mate! Better solution that the one I found in stack overflow.
Pingback: Ruby 02-12-2012 | Techdot Internet Relay Chat Resources, Logs, and Records.
thank’s for this post. it works even in rails 3.1.3 with ruby 1.9.2..
You rock, man.