1

您好,我是 ruby​​ 和 rails 的新手……但是当我启动 rail 服务器时,我收到了这个错误

这是我得到的错误

D:\mynewapp>ruby script/server

=> 启动 WEBrick => Rails 2.3.5 应用程序从http://0.0.0.0:3000 D:/ruby/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require': n such file to load -- rush (MissingSourceFile) from D:/ruby/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require' from D:/ruby/lib/ruby/gems/1.9.1/gems/activesupport-2.3.5/lib/active_s port/dependencies.rb:156:inblock in require'开始来自 D:/ruby/lib/ruby/gems/1.9.1/gems/activesupport-2.3.5/lib/active_s port/dependencies.rb:521:in new_constants_in' from D:/ruby/lib/ruby/gems/1.9.1/gems/activesupport-2.3.5/lib/active_s port/dependencies.rb:156:inrequire' 来自 D:/mynewapp/vendor/gems/delayed_job- 1.7.0/lib/delayed/worker.r 1:in <top (required)>' from D:/ruby/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require' from D:/ruby/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require' from D:/ruby/lib/ruby/gems/1.9.1/gems/activesupport-2.3.5/lib/active_s port/dependencies.rb:156:inblock in require' 来自 D:/ruby/lib/ruby/gems/1.9.1/gems/activesupport-2.3.5/lib/active_s port/dependencies.rb :521:in new_constants_in' from D:/ruby/lib/ruby/gems/1.9.1/gems/activesupport-2.3.5/lib/active_s port/dependencies.rb:156:inrequire' 来自 D:/mynewapp/vendor/gems/delayed_job-1.7.0/lib/delayed_job.rb:6 n <top (required)>' from D:/ruby/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require' from D:/ruby/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require' from D:/ruby/lib/ruby/gems/1.9.1/gems/activesupport-2.3.5/lib/active_s port/dependencies.rb:156:inblock in require' 来自 D:/ruby/lib/ruby/gems/1.9.1/ gems/activesupport-2.3.5/lib/active_s 端口/dependencies.rb:521:innew_constants_in' from D:/ruby/lib/ruby/gems/1.9.1/gems/activesupport-2.3.5/lib/active_s port/dependencies.rb:156:in来自 D:/mynewapp/config/environment.rb:39:inblock in <top (requir )>' from D:/ruby/lib/ruby/gems/1.9.1/gems/rails-2.3.5/lib/initializer.rb:1 :in的 require' 来自 D:/mynewapp/config/environment.rb:9:in 的<top (required)>' from D:/ruby/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require' from D:/ruby/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require' from D:/ruby/lib/ruby/gems/1.9.1/gems/activesupport-2.3.5/lib/active_s port/dependencies.rb:156:in块中的运行'来自 D:/ruby/lib/ruby/gems/ 1.9.1/gems/activesupport-2.3.5/lib/active_s port/dependencies.rb:521:in new_constants_in' from D:/ruby/lib/ruby/gems/1.9.1/gems/activesupport-2.3.5/lib/active_s port/dependencies.rb:156:inrequire' 来自 D:/ruby/lib/ruby/gems/1.9.1/gems/rails-2.3.5/库/命令/服务器。:84:在<top (required)>' from D:/ruby/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require' from D:/ruby/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require' from script/server:3:in'

任何帮助将不胜感激

提前致谢

4

1 回答 1

1

似乎是服务器抱怨缺少一个名为“rush”的文件(要加载的此类文件--rush)

经过一番搜索,我发现它是 unix shell 的 ruby​​ 替代品

http://rush.heroku.com/

所以尝试安装 'rush' gem 并通过 Gem 文件查看(如@Said 建议的那样)

http://rubygems.org/gems/rush

以下文章也将很有用

http://rush.heroku.com/rdoc/ http://www.slideshare.net/adamwiggins/rush-the-ruby-shell-and-unix-integration-library http://www.rubyinside.com/rush -a-ruby-shell-that-abstracts-system-operations-into-ruby-ones-765.html

高温高压

于 2012-04-04T11:43:45.137 回答