我安装了 Windows XP,并尝试在其上运行 buildr,我以前从未使用过 Ruby。我按照构建器网站上的 说明 进行操作,即:
- 使用 Ruby 安装程序
- 将 JAVA_HOME 环境变量设置为指向我的 JDK
- 运行以下命令:gem install buildr --platform mswin32。似乎安装正常,除了有关文档的错误(不知道这是否重要):
获取:rake-0.8.7.gem (100%)
获取:builder-2.1.2.gem
(100%)
警告:builder-2.1.2 的 nil 值无效
@cert_chain
获取:net-ssh-2.0.23.gem (100%)
获取:
net-sftp-2.0.4.gem (100%)
获取:rubyzip-0.9.4.gem (100%)
获取:highline-1.5.1.gem (100%)
获取:json_pure-1.4.3.gem
(100%)
获取:rubyforge-2.0.3.gem (100%)
获取:
hoe-2.3.3.gem (100%)
获取:rjb-1.3.2-x86-mswin32-60.gem
(100%)
获取:atoulme-Antwrap-0.7.1.gem (100%)
获取:
diff-lcs-1.1.2.gem (100%)
获取:rspec-expectations-2.1.0.gem
(100%)
获取:rspec-mocks-2.1.0.gem (100%)
获取:
rspec-core-2.1.0.gem (100%)
************* >**************
谢谢
您安装 rspec-core-2.1.0
请务必
查看升级说明以了解可能发生的更改
自上次发布以来:
http://github.com/rspec/rspec-core/blob/master /Upgrade.markdown
************ ***************
获取:
rspec-2.1.0.gem (100%)
获取:xml-simple-1.0.12.gem
(100%)
获取:minitar-0.5.3.gem (100%)
获取:
buildr-1.4.6-x86-mswin32.gem (100%)
要开始运行 buildr
--help
成功安装 rake-0.8.7
成功
安装builder-2.1.2
安装成功
net-ssh-2.0.23
已成功安装 net-sftp-2.0.4
已成功安装rubyzip-0.9.4
已成功安装
highline-1.5.1
成功安装json_pure-1.4.3
已成功安装rubyforge-2.0.3
已成功安装
hoe-2.3.3
成功安装 rjb-1.3.2-x86-mswin32-60
已成功安装atoulme-Antwrap-0.7.1
成功
安装 diff-lcs-1.1.2
安装成功
rspec-expectations-2.1.0
已成功安装
rspec-mocks-2.1.0
成功安装 rspec-core-2.1.0
已成功安装rspec-2.1.0
已成功安装
xml-simple-1.0.12
成功安装 minitar-0.5.3
已成功安装 buildr-1.4.6-x86-mswin32
19 个 gem
已安装
正在安装 rake-0.8.7 的 ri 文档...
正在安装 builder-2.1.2 的 ri 文档...
错误:虽然
为 builder-2.1.2 生成文档
... MESSAGE:
未处理的特殊:特殊:type=17, text=""
... RDOC
参数: --ri --op C:/Ruby187/lib/ruby/gems/1.8/doc/builder-2.1.2/ri
--title Builder -- 轻松 XML 构建 --main README --line-numbers lib
更改 Rakefile 自述文件 doc/releases/builder-1.2.4.rdoc
doc/releases/builder-2.0.0.rdoc doc/releases/builder-2.1.1.rdoc
--title builder-2.1.2 文档 --quiet
- 运行 buildr --help 并收到以下错误:
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems.rb:926:in 'report_activate_error': RubyGem 版本错误: buildr(1.4.6 不 >= 0) (Gem::LoadError)
来自 C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems.rb:244:in 'activate_dep'
来自 C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems.rb:236:in 'activate'
来自 C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems.rb:1307:in 'gem'
来自 C:/Ruby187/bin/buildr:18
我尝试给它一个版本:
构建器_1.4.6 _ --help
但我得到了同样的错误,除了:
'report_activate_error':RubyGem 版本错误:buildr(1.4.6 不 =
1.4.6) (Gem::LoadError)
有其他人遇到过这个问题还是我做错了什么?
谢谢
更新:
我安装了 JRuby,这对我有用。任何关于最初问题的反馈都值得赞赏,现在我将坚持使用 JRuby。
I have Windows XP installed and I am trying to run buildr on it, I have never used Ruby before. I followed instructions on the buildr website, i.e.:
- Installed Ruby 1.8.6 for windows using Ruby Installer
- Set JAVA_HOME env variable to point to my JDK
- Ran the following: gem install buildr --platform mswin32. Seemed to install ok except for error about documentation (don't know if that is important or not):
Fetching: rake-0.8.7.gem (100%)
Fetching: builder-2.1.2.gem
(100%)
WARNING: builder-2.1.2 has an invalid nil value for
@cert_chain
Fetching: net-ssh-2.0.23.gem (100%)
Fetching:
net-sftp-2.0.4.gem (100%)
Fetching: rubyzip-0.9.4.gem (100%)
Fetching: highline-1.5.1.gem (100%)
Fetching: json_pure-1.4.3.gem
(100%)
Fetching: rubyforge-2.0.3.gem (100%)
Fetching:
hoe-2.3.3.gem (100%)
Fetching: rjb-1.3.2-x86-mswin32-60.gem
(100%)
Fetching: atoulme-Antwrap-0.7.1.gem (100%)
Fetching:
diff-lcs-1.1.2.gem (100%)
Fetching: rspec-expectations-2.1.0.gem
(100%)
Fetching: rspec-mocks-2.1.0.gem (100%)
Fetching:
rspec-core-2.1.0.gem (100%)
***************************
Thank
you for installing rspec-core-2.1.0
Please be sure to
look at the upgrade instructions to see what might have
changed
since the last release:
http://github.com/rspec/rspec-core/blob/master/Upgrade.markdown
***************************
Fetching:
rspec-2.1.0.gem (100%)
Fetching: xml-simple-1.0.12.gem
(100%)
Fetching: minitar-0.5.3.gem (100%)
Fetching:
buildr-1.4.6-x86-mswin32.gem (100%)
To get started run buildr
--help
Successfully installed rake-0.8.7
Successfully
installed builder-2.1.2
Successfully installed
net-ssh-2.0.23
Successfully installed net-sftp-2.0.4
Successfully installed rubyzip-0.9.4
Successfully installed
highline-1.5.1
Successfully installed json_pure-1.4.3
Successfully installed rubyforge-2.0.3
Successfully installed
hoe-2.3.3
Successfully installed rjb-1.3.2-x86-mswin32-60
Successfully installed atoulme-Antwrap-0.7.1
Successfully
installed diff-lcs-1.1.2
Successfully installed
rspec-expectations-2.1.0
Successfully installed
rspec-mocks-2.1.0
Successfully installed rspec-core-2.1.0
Successfully installed rspec-2.1.0
Successfully installed
xml-simple-1.0.12
Successfully installed minitar-0.5.3
Successfully installed buildr-1.4.6-x86-mswin32
19 gems
installed
Installing ri documentation for rake-0.8.7...
Installing ri documentation for builder-2.1.2...
ERROR: While
generating documentation for builder-2.1.2
... MESSAGE:
Unhandled special: Special: type=17, text=""
... RDOC
args: --ri --op C:/Ruby187/lib/ruby/gems/1.8/doc/builder-2.1.2/ri
--title Builder -- Easy XML Building --main README --line-numbers lib
CHANGES Rakefile README doc/releases/builder-1.2.4.rdoc
doc/releases/builder-2.0.0.rdoc doc/releases/builder-2.1.1.rdoc
--title builder-2.1.2 Documentation --quiet
- Ran buildr --help and got the following error:
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems.rb:926:in 'report_activate_error': RubyGem version error: buildr(1.4.6 not >= 0) (Gem::LoadError)
from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems.rb:244:in 'activate_dep'
from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems.rb:236:in 'activate'
from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems.rb:1307:in 'gem'
from C:/Ruby187/bin/buildr:18
I tried giving it a version:
buildr _1.4.6 _ --help
But I just got the same error except for:
'report_activate_error': RubyGem version error: buildr(1.4.6 not =
1.4.6) (Gem::LoadError)
Has anyone else encountered this or am I doing something wrong?
thanks
UPDATE:
I installed JRuby and that worked for me. Any feedback on the initial issue is appreciated, for now I am going to stick with JRuby.
发布评论
评论(2)
这是一个已知问题:https://issues.apache.org/jira/browse/BUILDR -580
建议不要运行
gem update --system
。This is a known issue: https://issues.apache.org/jira/browse/BUILDR-580
The recommendation is not run
gem update --system
.我在 Windows 上独立安装和 PIK 安装时遇到同样的问题。
正如作者所说,JRuby 是解决方法。
I have the same problem on Windows for Standalone and PIK installation.
Like the author said, JRuby is the workaround.