1

こんにちは、ルビーとレールは初めてです...しかし、レールサーバーを起動すると、このエラーが発生します

これは私が得ているエラーです

D:\mynewapp>ruby script/server

=> WEBrick の起動 => http://0.0.0.0:3000 D:/ruby/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36: 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:inrequire のブロックで始まる Rails 2.3.5 アプリケーションfrom 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' from D:/mynewapp/vendor/gems/delayed_job- 1.7.0/lib/delayed/worker.r 1: <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:inrequire のブロック内 D:/ruby/lib/ruby/gems/1.9.1/gems/activesupport-2.3.5/lib/active_s port/dependencies.rb から:521: new_constants_in' from D:/ruby/lib/ruby/gems/1.9.1/gems/activesupport-2.3.5/lib/active_s port/dependencies.rb:156:inD:/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' from D:/ruby/lib/ruby/gems/1.9.1/ gems/activesupport-2.3.5/lib/active_s port/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:inD:/mynewapp/config/environment.rb:39 からの「require」: block in <top (requir )>' from D:/ruby/lib/ruby/gems/1.9.1/gems/rails-2.3.5/lib/initializer.rb:1 :inD:/mynewapp/config/environment.rb:9 からの「実行中」: <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:inD:/ruby/lib/ruby/gems/ からの「require 内のブロック」 1.9.1/gems/activesupport-2.3.5/lib/active_s port/dependencies.rb:521: 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' from D:/ruby/lib/ruby/gems/1.9.1/gems/rails-2.3.5/ lib/コマンド/サーバー。:84: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 script/server:3:in'

どんな助けでも大歓迎です

前もって感謝します

4

1 に答える 1

1

サーバーが「rush」という名前のファイルが見つからないことを訴えているようです (n such file to load -- rush)

そして、いくつかの検索で、それがUNIXシェルのルビー代替品であることがわかりました

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

HTH

于 2012-04-04T11:43:45.137 に答える