2013-04-12 98 views
0

我使用ruby 2.0.0,rails 3.2.13。當我嘗試運行Rails應用程序:這裏是我得到的消息,當我運行rails server RAILS_ENV=productionRails在OSX上啓動失敗

/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>' 

有人可以幫助?

+0

您使用的警衛,這不是在:開發組在你的Gemfile? –

+1

無法加載這樣的文件 - rb-fsevent(LoadError)執行軟件包安裝。也許這會解決它。 –

+0

gem'rb-fsevent',:require => false這是否解決了它? –

回答

4

在你的開發小組將您的寶石「RB-fsevent」和bundle install

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