为什么jruby在安装ruby-debug-ide时会给我这个错误?

时间:2012-02-18 14:59:29

标签: ruby ruby-on-rails-3 rubygems jruby ruby-debug

以下是错误日志,

$ 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

编辑:刚刚尝试使用ruby on rails 3(而不是JRuby),我得到了同样的错误。

1 个答案:

答案 0 :(得分:1)

-rubygems c:/Program Files/jruby-1.6.6/lib/ruby/gems/1.8/gems/rake-0.9.2.2/bin/rake

我认为你错过了那里的引号......这就是你得到错误的原因。