2011-10-17 15 views
2

以下は、レールサーバーを実行したときのログから吐き出されたものです...2.3.5から3.1へのアップグレードされたRailsプロジェクト:rails/init.rbをロードするためのファイルがありません。

Roy-Sherrills-MacBook-Pro:emeraldcg tjs$ rails s 
=> Booting WEBrick 
=> Rails 3.1.1 application starting in development on http://0.0.0.0:3000 
=> Call with -d to detach 
=> Ctrl-C to shutdown server 
Exiting 
/Users/tjs/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:240:in `require': no such file to load -- rails/init.rb (LoadError) 
from /Users/tjs/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:240:in `block in require' 
from /Users/tjs/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:223:in `block in load_dependency' 
from /Users/tjs/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:640:in `new_constants_in' 
from /Users/tjs/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:223:in `load_dependency' 
from /Users/tjs/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:240:in `require' 
from /Users/tjs/Sites/emeraldcg/vendor/plugins/jrails/init.rb:1:in `block in <class:Plugin>' 
from /Users/tjs/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/plugin.rb:81:in `eval' 
from /Users/tjs/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/plugin.rb:81:in `block in <class:Plugin>' 
from /Users/tjs/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/initializable.rb:30:in `instance_exec' 
from /Users/tjs/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/initializable.rb:30:in `run' 
from /Users/tjs/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/initializable.rb:55:in `block in run_initializers' 
from /Users/tjs/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/initializable.rb:54:in `each' 
from /Users/tjs/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/initializable.rb:54:in `run_initializers' 
from /Users/tjs/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/application.rb:96:in `initialize!' 
from /Users/tjs/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/railtie/configurable.rb:30:in `method_missing' 
from /Users/tjs/Sites/emeraldcg/config/environment.rb:5:in `<top (required)>' 
from /Users/tjs/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:240:in `require' 
from /Users/tjs/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:240:in `block in require' 
from /Users/tjs/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:223:in `block in load_dependency' 
from /Users/tjs/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:640:in `new_constants_in' 
from /Users/tjs/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:223:in `load_dependency' 
from /Users/tjs/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:240:in `require' 
from /Users/tjs/Sites/emeraldcg/config.ru:4:in `block in <main>' 
from /Users/tjs/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.3.3/lib/rack/builder.rb:51:in `instance_eval' 
from /Users/tjs/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.3.3/lib/rack/builder.rb:51:in `initialize' 
from /Users/tjs/Sites/emeraldcg/config.ru:1:in `new' 
from /Users/tjs/Sites/emeraldcg/config.ru:1:in `<main>' 
from /Users/tjs/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.3.3/lib/rack/builder.rb:40:in `eval' 
from /Users/tjs/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.3.3/lib/rack/builder.rb:40:in `parse_file' 
from /Users/tjs/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.3.3/lib/rack/server.rb:200:in `app' 
from /Users/tjs/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/commands/server.rb:46:in `app' 
from /Users/tjs/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.3.3/lib/rack/server.rb:301:in `wrapped_app' 
from /Users/tjs/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.3.3/lib/rack/server.rb:252:in `start' 
from /Users/tjs/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/commands/server.rb:70:in `start' 
from /Users/tjs/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/commands.rb:54:in `block in <top (required)>' 
from /Users/tjs/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/commands.rb:49:in `tap' 
from /Users/tjs/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/commands.rb:49:in `<top (required)>' 
from script/rails:6:in `require' 
from script/rails:6:in `<main>' 
Roy-Sherrills-MacBook-Pro:emeraldcg tjs$ 

答えて

1

Rails 3.1.1を新しくインストールしても同様の問題が発生しました。 barbaredによって私はレールフォーラムで働いた解決策を見つけました。詳細については、そのエントリを参照してください。

rvm pkg install openssl 
    rvm remove 1.9.2 
    rvm install 1.9.2 --with-openssl-dir=$HOME/.rvm/usr 
関連する問題