Topic: Script/Console error: no such file to load -- readline (LoadError)
Hi Rails Forum,
I have finally gotten around to troubleshooting this since it was on the bottom of my list of stuff to fix.
When I type script/console, I get this error:
[root@trebek2 readline]# /usr/local/bin/myapp/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/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'
I tried doing the fix as outlined here but to no avail: http://wiki.rubyonrails.org/rails/pages/ReadlineLibrary
According to this article, it seems I am missing some code for the readline library.
Is there a way to reinstall readline using gems? Any suggestion to fix this are more than welcome.