我正在尝试在运行 OS X 10.8 的新 Macbook Air 上设置我的 Rails 应用程序(在 Debian 服务器上运行良好)。
我从安装 homebrew 和 rvm 开始,我使用 rvm 安装了 ruby 1.9.3,使用gem install rails
. 到目前为止效果很好。然后我从我的 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"
我究竟做错了什么?