我正在尝试在运行OS X 10.8的新Macbook Air上设置我的Rails应用程序(在Debian服务器上运行得很好)。
我开始安装homebrew和rvm,我使用rvm和rails使用gem install rails
安装了ruby 1.9.3。到目前为止它的效果很好。然后我从我的svn repo下载了我的rails应用程序并运行了rails new myapp
,它添加了不受版本控制的额外文件(例如数据库配置等)。捆绑安装运行得很好。
但是当我尝试启动服务器时,我得到了这个:
$ rails server
/Users/ephracis/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require': cannot load such file -- action_controller/request (LoadError)
from /Users/ephracis/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `block in require'
from /Users/ephracis/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:213:in `load_dependency'
from /Users/ephracis/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require'
from /Users/ephracis/.rvm/gems/ruby-1.9.3-p448/gems/oauth-0.4.7/lib/oauth/request_proxy/action_controller_request.rb:3:in `<top (required)>'
from /Users/ephracis/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require'
from /Users/ephracis/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `block in require'
from /Users/ephracis/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:213:in `load_dependency'
from /Users/ephracis/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require'
from /Users/ephracis/.rvm/gems/ruby-1.9.3-p448/gems/oauth-plugin-0.4.1/lib/oauth-plugin.rb:9:in `<top (required)>'
from /Users/ephracis/.rvm/gems/ruby-1.9.3-p448@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `require'
from /Users/ephracis/.rvm/gems/ruby-1.9.3-p448@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `block (2 levels) in require'
from /Users/ephracis/.rvm/gems/ruby-1.9.3-p448@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `each'
from /Users/ephracis/.rvm/gems/ruby-1.9.3-p448@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `block in require'
from /Users/ephracis/.rvm/gems/ruby-1.9.3-p448@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `each'
from /Users/ephracis/.rvm/gems/ruby-1.9.3-p448@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `require'
from /Users/ephracis/.rvm/gems/ruby-1.9.3-p448@global/gems/bundler-1.3.5/lib/bundler.rb:132:in `require'
from /Users/ephracis/Development/Stoffi/Code/branches/features/rails4/config/application.rb:7:in `<top (required)>'
from /Users/ephracis/.rvm/gems/ruby-1.9.3-p448/gems/railties-4.0.0/lib/rails/commands.rb:76:in `require'
from /Users/ephracis/.rvm/gems/ruby-1.9.3-p448/gems/railties-4.0.0/lib/rails/commands.rb:76:in `block in <top (required)>'
from /Users/ephracis/.rvm/gems/ruby-1.9.3-p448/gems/railties-4.0.0/lib/rails/commands.rb:73:in `tap'
from /Users/ephracis/.rvm/gems/ruby-1.9.3-p448/gems/railties-4.0.0/lib/rails/commands.rb:73:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
我正在运行rails 4.0,我的Gemfile看起来像这样:
source 'http://rubygems.org'
gem 'rails', '~> 4.0.0'
gem 'sqlite3'
gem 'sass-rails', '~> 4.0.0'
gem 'coffee-rails', '~> 4.0.0'
gem 'uglifier', '>= 1.3.0'
gem 'jquery-rails'
gem 'jquery-ui-rails'
gem 'turbolinks'
gem 'jbuilder', '~> 1.2'
gem 'devise', :git => "https://github.com/plataformatec/devise.git"
gem 'hanna-nouveau'
gem "omniauth-google-oauth2"
gem "omniauth-lastfm"
gem "omniauth-linkedin"
gem "omniauth-myspace"
gem "omniauth-soundcloud"
gem "omniauth-twitter"
gem "omniauth-vimeo"
gem "omniauth-vkontakte"
gem "omniauth-weibo-oauth2"
gem "omniauth-windowslive"
gem "omniauth-yahoo"
gem "omniauth-yandex"
gem "omniauth-youtube"
gem "omniauth", '>= 1.1.4'
gem 'geoip'
gem 'recaptcha', :require => 'recaptcha/rails'
gem "oauth-plugin", ">= 0.4.0.pre1"
gem "juggernaut"
gem "i18n_routing"
gem "will_paginate"
gem "wikipedia-client"
gem "mediacloth"
gem "wikicloth"
gem "deep_merge"
gem "htmlentities"
我做错了什么?