您好我是ruby和rails的新手......但是当我启动铁路服务器时,我收到此错误
这是我得到的错误
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:在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: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:in
require'
来自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: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:in
require'
来自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: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:in
require'
来自D:/mynewapp/config/environment.rb:39:in block in <top (requir
)>'
from D:/ruby/lib/ruby/gems/1.9.1/gems/rails-2.3.5/lib/initializer.rb:1
:in
run'
来自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
块中的'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:in
require'
来自D:/ruby/lib/ruby/gems/1.9.1/gems/rails-2.3.5/lib/commands/server。
: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
'
任何帮助将不胜感激
先谢谢
答案 0 :(得分:1)
似乎是服务器抱怨丢失的文件叫做'rush'(n这样的文件要加载 - 赶紧)
通过一些搜索我发现它是unix shell的红宝石替代品
所以尝试安装'rush'gem并通过Gem文件查看(如@Said建议的那样)
以下文章也很有用
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
答案 1 :(得分:0)
你应该添加 gem rush 。尝试添加它,然后运行bundle。