Rails site doesn't open


#1

Hi,
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)
from /usr/local/lib/site_ruby/1.8/rubygems.rb:60:in require' from /usr/local/lib/site_ruby/1.8/rubygems.rb:60 from ./../config/../vendor/rails/railties/lib/initializer.rb:178:inrequire’
from ./…/config/…/vendor/rails/railties/lib/initializer.rb:178:in install_gem_spec_stubs' from ./../config/../vendor/rails/railties/lib/initializer.rb:93:insend’
from ./…/config/…/vendor/rails/railties/lib/initializer.rb:93:in run' from ./../config/boot.rb:46:inload_initializer’
from ./…/config/boot.rb:38:in run' from ./../config/boot.rb:11:inboot!'
from ./…/config/boot.rb:109
from ./…/config/environment.rb:13:in require' from ./../config/environment.rb:13 from ./dispatch.fcgi:23:inrequire’
from ./dispatch.fcgi:23

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.

Thanks…