我在 Windows 7 x64 上,正在尝试从头开始安装 Ruby on Rails。我刚刚安装了RubyInstaller 1.9.3-p429
,现在只运行了DevKit-tdm-32-4.5.2-20111229-1559-sfx
. 做完之后ruby dk.rb install --force
。我试图测试它是否设置正确但遇到:
c:\DevKit>gem install RedCloth --platform=ruby
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
The system cannot find the path specified.
ERROR: Error installing RedCloth:
ERROR: Failed to build gem native extension.
C:/Ruby193/bin/ruby.exe extconf.rb
checking for main() in -lc... no
creating Makefile
Gem files will remain installed in C:/Ruby193/lib/ruby/gems/1.9.1/gems/RedCloth-4.2.9 for inspection.
Results logged to C:/Ruby193/lib/ruby/gems/1.9.1/gems/RedCloth-4.2.9/ext/redcloth_scan/gem_make.out
这发生在所有需要 Devkit 的 gem 身上。我想我必须设置指定的路径,但我不知道这意味着什么。我该怎么做或者这里的真正问题是什么?
附言
一点背景。我确实安装了 RailsInstaller,但我遇到了同样的错误,所以我删除了所有内容。我也安装了 NodeJ,但也将其删除。我完全删除了 PATH 变量以从头开始。
更新
尝试 RailsInstaller 会给我这个错误:
$ gem install json -v 1.8.0
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
The system cannot find the path specified.
ERROR: Error installing json:
ERROR: Failed to build gem native extension.
c:/RailsInstaller/Ruby1.9.3/bin/ruby.exe extconf.rb
creating Makefile
Gem files will remain installed in c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/json-1.8.0 for inspection.
Results logged to c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/json-1.8.0/ext/json/ext/generator/gem_make.out