Monday, September 10, 2007

no such file to load -- readline (LoadError)

$shell>ruby script/console
Loading development environment.
/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:in `load_modules'
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:in `setup'
from /usr/local/lib/ruby/1.8/irb.rb:54:in `start'
from /usr/local/bin/irb:13

ubutu7.04 上解决方法见:
https://rubyforge.org/forum/forum.php?thread_id=14854&forum_id=9502
centos5.0 上解决方法如下:
yum install readline-devel
$shell> cd /path/to/ruby_source/ext/readline
$shell> ruby extconf.rb
$shell> make
$shell> sudo make install

No comments :