Rails console errors on Debian Etch

Ruby No Comments »

If you happen to run across the following error:

host:/somedir# RAILS_ENV=production script/console
Loading production environment.
/var/lib/gems/1.8/gems/rails-1.2.3/lib/commands/console.rb:25:in `exec': No such file or directory - irb -r irb/completion -r script/../config/../config/environment -r console_app -r console_with_helpers --simple-prompt (Errno::ENOENT)
from /var/lib/gems/1.8/gems/rails-1.2.3/lib/commands/console.rb:25
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require'
from script/console:3

The following fix might help (as root):

# cd /usr/bin
# ln -s irb18 irb

The packages we have installed are:

host:/somedir# dpkg --get-selections |grep ruby
liberb-ruby install
libgems-ruby1.8 install
libopenssl-ruby1.8 install
libpgsql-ruby1.8 install
libreadline-ruby1.8 install
libredcloth-ruby1.8 install
librmagick-ruby1.8 install
libruby1.8 install
libyaml-ruby install
libzlib-ruby install
ruby install
ruby1.8 install
ruby1.8-dev install
rubygems install

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in