Installing readline on Kubuntu

Posted on Sun Mar 05 17:53:00 UTC 2006

Running script/console provides the delightful answer:

/usr/local/lib/ruby/1.8/irb/completion.rb:10:in `require’:
no such file to load – readline (LoadError)

Turns out that Kubuntu doesn’t have the curses libraries.

Here’s the begining of a solution

apt-get install libncurses5-dev libreadline5-dev (Ubuntu/Debian)

Then recompile the readline extension and go from there.

cd ext/readline
ruby extconf.rb
make
sudo make install

Read more

Posted in Linux, Quid Pro Quo, Rails  |  Tags , ,  |  10 comments

Comments

  1. Matt Matt said // Apr 14, 2006 at 04:20 AM

    Niether does ubuntu (well that was pretty obvious if kububtu didnt have them) but thanks for this, i was so confused..

  2. mutejute mutejute said // Apr 14, 2006 at 05:40 AM

    thanks for your blog on this. im using ubuntu. i followed your instructions. now my irb has tab completion! thanks a rubillion! :)

  3. Pascal Pascal said // Apr 14, 2006 at 08:03 AM

    Thank you for the kind words. I'm thrilled you found this useful!

  4. Pete Pete said // May 04, 2006 at 11:37 AM

    exactly how does one go about "recompiling the readline extension"?

  5. Pascal Pascal said // May 04, 2006 at 03:21 PM

    Pete, assuming you've compiled ruby from source, or you have the source available, you would go in the ext/readline directory of your ruby source. From there, typying ruby extconf.rb make clean sudo make install should do it. If you have not installed ruby from source, you might be able to get away from getting the source and compiling readline by itself. In my case, the available version of ruby via apt-get was older, so I went for ruby 1.8.4 but readline didn't build when I first went through the install because of the missing dependencies.

  6. The allnighter The allnighter said // Jul 03, 2006 at 11:46 PM

    thank you very much. it fixed my problem on my ubuntu. Merci beaucoup :)

  7. Pascal Pascal said // Jul 04, 2006 at 02:23 AM

    Glad you found this helpful!

  8. Andrew Arnott Andrew Arnott said // Aug 16, 2006 at 12:24 AM

    Thanks much!

  9. tayfun tayfun said // Jan 05, 2007 at 03:16 PM

    thanks for the tips :)

  10. blaupunkt blaupunkt said // Apr 03, 2007 at 11:22 AM

    Thank you! I built ruby 1.8.6 from the source and had this problem.

(leave url/email »)

Comment Markup Help