My web sites suddenly stoped working. They’re rails site.
When I try to run dispatch.fcgi from shell, it throws following error.
/usr/lib/ruby/1.8/x86_64-linux/rbconfig.rb:7: ruby lib version (1.8.5) doesn’t match executable version (1.8.7) (RuntimeError)
require' from /usr/local/lib/site_ruby/1.8/rubygems.rb:60 from ./../config/../vendor/rails/railties/lib/initializer.rb:178:inrequire’
install_gem_spec_stubs' from ./../config/../vendor/rails/railties/lib/initializer.rb:93:insend’
run' from ./../config/boot.rb:46:inload_initializer’
run' from ./../config/boot.rb:11:inboot!'
require' from ./../config/environment.rb:13 from ./dispatch.fcgi:23:inrequire’
I can’t even create a rails project by ‘rails test’.
It throws same error.
It looks like your ruby version has changed to 1.8.7, but rbconfig.rb still looks for 1.8.5 and it crashes.
I’m not sure why this is happening, but now I can’t start my rails web sites.
Please solve this problem ASAP.