Ruby script server/console through readline (LoadError)

  • Thread starter Prabakar Prabakar
  • Start date


Prabakar Prabakar

i have centos5.1 and ruby version "ruby 1.8.6 (2007-03-13 patchlevel 0)
[x86_64-linux]" "gem version 1.3.5"

[root@localhost]$ script/console
/script/../config/boot.rb:25:Warning: Gem::SourceIndex#search support
for String patterns is deprecated, use #find_name
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 `require'
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 `each'
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

and then i have installed the following for fix that error

$> yum install readline-devel -y
$> cd /root/src/ruby-1.8.6/ext/readline/
$> ruby extconf.rb
$> make

the make through the following message;;

make: Nothing to be done for `all'.


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question