如何让Ruby工作(在.gitbook上)?

时间:2011-05-17 20:22:16

标签: ruby git

我正在努力让Ruby运行,以便我可以为Git社区图书做出贡献。

我在Windows XP上。我已经下载了Ruby 1.9.2和开发工具包。我已经下载了gitbook及其文件.gitbook

我现在处于这样的情况:它告诉我它无法找到脚本文件,并且在尝试更新Windows Path变量,并将.gitbook文件夹移动到各个位置后,我仍然无法取得任何进展。

跟踪选项提供了以下内容(抱歉,它格式不正确!)。它仍然看起来像一些愚蠢的路径错误,但需要帮助......

D:\Ruby192\bin\gitbook>rake html --trace
(in D:/Ruby192/bin/gitbook)
rake aborted!
no such file to load -- script/merge
<internal:lib/rubygems/custom_require>:29:in `require'
<internal:lib/rubygems/custom_require>:29:in `require'
D:/Ruby192/bin/gitbook/Rakefile:1:in `<top (required)>'
D:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2383:in `load'
D:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2383:in `raw_load_rakefile'
D:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2017:in `block in load_rakefile'
D:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
D:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2016:in `load_rakefile'
D:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2000:in `block in run'
D:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
D:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
D:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.8.7/bin/rake:31:in `<top (required)>'
D:/Ruby192/bin/rake:19:in `load'
D:/Ruby192/bin/rake:19:in `<main>'

欢迎任何建议。

1 个答案:

答案 0 :(得分:1)

github中的Rakefile就像,

require 'script/merge'

使其在ruby 1.9.x中运行如下编辑

require './script/merge'