June 15, 2009 | In: how-to, Tips & Tricks, Web development

LoadError : no such file to load — readline (LoadError) when running script/console on ubuntu

Q : What’s the best thing that may happen to a developer ?
A : A Bug :) at the beginning of the day :)

I ran script/console in a rails project to debug something on console, but I got this LoadError:

How to fix ?
I figured out that some libraries are missing after installing ruby from sources (I got those troubles after upgrading my ubuntu from 8.10 to 9.04 and then reinstalling ruby from sources to solve a non-compatibility problem of the already installed ruby binary package with ubuntu 9.04) :

Then move to your ruby source folder, subfolder ext/readline and then configure, build and install stuffs.

you may get something like this : ( when running ruby extconf.rb)

Comment Form

Categories