Error: /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

DeliciousStumbleUponDiggTwitterFacebookRedditLinkedInEmail
Tags: , , , ,
6 Responses to “completion.rb:10:in `require’: no such file to load — readline (LoadError)”
  1. Peter says:

    Thank you! It was very helpful!

    [Reply]

    alex Reply:

    Hello Peter,

    No problem. Glad it helped.

    Thanks.
    Alex

    [Reply]

  2. paul says:

    Excellent! Worked with Mandriva 2009 installation.

    [Reply]

    alex Reply:

    Hello paul,

    Glad to hear it helped out with Mandriva Linux. Thanks for taking the time to leave feedback.

    Thanks.
    alex

    [Reply]

  3. Julien says:

    Thanks alex this solved my problem on centos ruby on rails installation with rvm

    [Reply]

    alex Reply:

    Hello Julien,

    No problem. Thanks for taking time to leave feedback on our site.

    Thanks.
    alex

    [Reply]

  4.  
Leave a Reply

*Type the letter/number combination in the abvoe field before clicking submit.

*