/usr/local/lib/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:51:in `gem_original_require': no such file to load -- rails (LoadError)
from /usr/local/lib/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:51:in `require'
from /usr/local/www/sl-exchange/lib/init.rb:4
from /usr/local/lib/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:51:in `gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:51:in `require'
from /usr/local/www/sl-exchange/lib/exchange.rb:11
from /usr/lib/ruby/gems/1.8/gems/daemons-1.0.10/lib/daemons/application.rb:176:in `load'
from /usr/lib/ruby/gems/1.8/gems/daemons-1.0.10/lib/daemons/application.rb:176:in `start_load'
from /usr/lib/ruby/gems/1.8/gems/daemons-1.0.10/lib/daemons/application.rb:257:in `start'
from /usr/lib/ruby/gems/1.8/gems/daemons-1.0.10/lib/daemons/controller.rb:69:in `run'
from /usr/lib/ruby/gems/1.8/gems/daemons-1.0.10/lib/daemons.rb:139:in `run'
from /usr/lib/ruby/gems/1.8/gems/daemons-1.0.10/lib/daemons/cmdline.rb:105:in `call'
from /usr/lib/ruby/gems/1.8/gems/daemons-1.0.10/lib/daemons/cmdline.rb:105:in `catch_exceptions'
from /usr/lib/ruby/gems/1.8/gems/daemons-1.0.10/lib/daemons.rb:138:in `run'
from ./data_exchange_preview:15
しかしrails --version
、ターミナルで a を実行すると、次のようになります。
root@vpc-db:/usr/local/www/sl-exchange# rails --version
Rails 2.1.1
と私にwhich rails
与えます/usr/bin/rails
。ruby 1.9.1 を削除し、システムに 1.8.7 をインストールしたので、それが原因かもしれません。以前は /usr/local/bin にありました