Aug
12
2008
completion.rb:10:in `require’: no such file to load — readline (LoadError)
Posted by alex in Errors at 7:59 PMError: /usr/local/lib/ruby/1.8/irb/completion.rb:10:in `require’: no such file to load — readline (LoadError)
When attempting to run irb you get the above error.
Short Answer: Install readline and readline-devel via yum and then recompile readline in ruby
The issue could be the following.
1. Make sure readline and readline-devel are installed: yum list *READL*
2. If not installed both via yum: yum install readline readline-devel
3. rebuild and make the ruby extension for readline: cd ruby-source/ext/readline; ruby extconf.rb; make; make install

Entries (RSS)
Thank you! It was very helpful!
[Reply]
alex Reply:
September 28th, 2009 at 5:12 PM
Hello Peter,
No problem. Glad it helped.
Thanks.
Alex
[Reply]
Excellent! Worked with Mandriva 2009 installation.
[Reply]
alex Reply:
December 6th, 2009 at 5:57 AM
Hello paul,
Glad to hear it helped out with Mandriva Linux. Thanks for taking the time to leave feedback.
Thanks.
alex
[Reply]
Thanks alex this solved my problem on centos ruby on rails installation with rvm
[Reply]
alex Reply:
August 10th, 2010 at 3:38 PM
Hello Julien,
No problem. Thanks for taking time to leave feedback on our site.
Thanks.
alex
[Reply]