Rails在OSX上启动失败

时间:2013-04-12 10:56:05

标签: ruby-on-rails ruby macos

我正在使用ruby 2.0.0,rails 3.2.13。当我尝试运行rails应用程序时:这是我运行rails server RAILS_ENV=production

时收到的消息
/Users/myhome/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/gems/2.0.0/gems/bundler-1.3.4/lib/bundler/runtime.rb:72:in `require': cannot load such file -- rb-fsevent (LoadError)
    from /Users/myhome/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/gems/2.0.0/gems/bundler-1.3.4/lib/bundler/runtime.rb:72:in `block (2 levels) in require'
    from /Users/myhome/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/gems/2.0.0/gems/bundler-1.3.4/lib/bundler/runtime.rb:70:in `each'
    from /Users/myhome/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/gems/2.0.0/gems/bundler-1.3.4/lib/bundler/runtime.rb:70:in `block in require'
    from /Users/myhome/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/gems/2.0.0/gems/bundler-1.3.4/lib/bundler/runtime.rb:59:in `each'
    from /Users/myhome/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/gems/2.0.0/gems/bundler-1.3.4/lib/bundler/runtime.rb:59:in `require'
    from /Users/myhome/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/gems/2.0.0/gems/bundler-1.3.4/lib/bundler.rb:132:in `require'
    from /Users/git/gitlab/config/application.rb:9:in `<top (required)>'
    from /Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/commands.rb:53:in `require'
    from /Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/commands.rb:53:in `block in <top (required)>'
    from /Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/commands.rb:50:in `tap'
    from /Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/commands.rb:50:in `<top (required)>'
    from script/rails:6:in `require'
    from script/rails:6:in `<main>'

有人可以帮忙吗?

1 个答案:

答案 0 :(得分:4)

在您的开发小组中移动您的gem'rb-fsevent'并bundle install

group :development, :test do
     gem 'rb-fsevent'
end