Dirk Bergmann

no such file to load -- readline (LoadError) when running script/console

If you get

Loading development environment (Rails 2.3.2)/usr/local/lib/ruby/1.8/irb/completion.rb:10:in require': no such file to load -- readline (LoadError)
from /usr/local/lib/ruby/1.8/irb/completion.rb:10
from /usr/local/lib/ruby/1.8/irb/init.rb:252:inrequire' from /usr/local/lib/ruby/1.8/irb/init.rb:252:in load_modules'
from /usr/local/lib/ruby/1.8/irb/init.rb:250:ineach' from /usr/local/lib/ruby/1.8/irb/init.rb:250:in load_modules'
from /usr/local/lib/ruby/1.8/irb/init.rb:21:insetup' from /usr/local/lib/ruby/1.8/irb.rb:54:in `start' from /usr/local/bin/irb:13

when running script/console, you might be missing some libraries after you?ve installed Ruby from source. So you might try (Ubuntu, Debian):

sudo apt-get install libncurses5-dev

sudo apt-get install libreadline5-dev

Then cd to the folder with your unpacked Ruby sources, subfolder ext/readline: