• Home »
  • Errors »
  • completion.rb:10:in `require’: no such file to load — readline (LoadError)

completion.rb:10:in `require’: no such file to load — readline (LoadError)

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

Share