为什么 jruby 在安装 ruby-debug-ide 时给我这个错误?
以下是错误日志,
$ jruby -S gem install ruby-debug-ide -v '0.4.16'
Building native extensions. This could take a while...
ERROR: Error installing ruby-debug-ide:
ERROR: Failed to build gem native extension.
"c:/Program Files/jruby-1.6.6/bin/jruby.exe" mkrf_conf.rb
""c:/Program Files/jruby-1.6.6/bin/jruby.exe"" -rubygems c:/Program Files/jruby-1.6.6/lib/ruby/gems/1.8/gems/rake-0.9.2.2/bin/rake RUBYARCHDIR="c:/Program Files/jruby-1.6.6/lib/ruby/
gems/1.8/gems/ruby-debug-ide-0.4.16/lib" RUBYLIBDIR="c:/Program Files/jruby-1.6.6/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.4.16/lib"
'""c:' is not recognized as an internal or external command,
operable program or batch file.
Gem files will remain installed in c:/Program Files/jruby-1.6.6/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.4.16 for inspection.
Results logged to c:/Program Files/jruby-1.6.6/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.4.16/ext/gem_make.out
编辑:刚刚在 Rails 3 上的 ruby(而不是 JRuby)上尝试了相同的操作,我得到了相同的错误。
Following is the error logs,
$ jruby -S gem install ruby-debug-ide -v '0.4.16'
Building native extensions. This could take a while...
ERROR: Error installing ruby-debug-ide:
ERROR: Failed to build gem native extension.
"c:/Program Files/jruby-1.6.6/bin/jruby.exe" mkrf_conf.rb
""c:/Program Files/jruby-1.6.6/bin/jruby.exe"" -rubygems c:/Program Files/jruby-1.6.6/lib/ruby/gems/1.8/gems/rake-0.9.2.2/bin/rake RUBYARCHDIR="c:/Program Files/jruby-1.6.6/lib/ruby/
gems/1.8/gems/ruby-debug-ide-0.4.16/lib" RUBYLIBDIR="c:/Program Files/jruby-1.6.6/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.4.16/lib"
'""c:' is not recognized as an internal or external command,
operable program or batch file.
Gem files will remain installed in c:/Program Files/jruby-1.6.6/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.4.16 for inspection.
Results logged to c:/Program Files/jruby-1.6.6/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.4.16/ext/gem_make.out
EDIT: Just tried the same with ruby on rails 3 (instead of JRuby) and I get the same error.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为您错过了那里的引号...这就是您收到错误的原因。
I think you're missing the quotes there... It's why you're getting the error you're getting.