以下是我的Windows 7命令提示符中显示问题的一些命令。正如你所看到的,我将我能想到的一切添加到我的路径中,试图解决问题。同样的DevKit之前曾使用相同的Ruby安装工作,所以我认为我安装正确。
E:\ruby\bookmarks3Copy>gem install atomic -v '1.1.9'
ERROR: Error installing atomic:
The 'atomic' native gem requires installed build tools.
Please update your PATH to include build tools or download the DevKit
from 'http://rubyinstaller.org/downloads' and follow the instructions
at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit'
E:\ruby\bookmarks3Copy>path
PATH=f:\ruby\DevKit;f:\ruby\DevKit\bin;[snip];f:\ruby\DevKit\bin;f:\programs\git\bin;"F:\Program Files (x86)\KDiff3"
E:\ruby\bookmarks3Copy>where ruby
f:\ruby\Ruby200-x64\bin\ruby.exe
E:\ruby\bookmarks3Copy>gem list atomic
*** LOCAL GEMS ***
atomic (1.1.14)
E:\ruby\bookmarks3Copy>bundle list atomic
DL is deprecated, please use Fiddle
f:/ruby/Ruby200-x64/lib/ruby/gems/2.0.0/gems/atomic-1.1.14
答案 0 :(得分:1)
我可以在这里与您分享我的解决方案,希望它可以运作
pik list
It should show you
187: ruby 1.8.7 (2010-08-16 patchlevel 302) [i386-mingw32] 192: ruby 1.9.2p290 (2011-07-09) [i386-mingw32] 193: ruby 1.9.3p327 (2012-11-10) [i386-mingw32]
200: ruby 2.0.0p247 (2013-06-27) [i386-mingw32] If its not pointing to ruby version 200 then
pik使用200
ruby dk.rb install 它会将DevKit增强到已安装的Rubies
最后 gem install rails
这将为Ruby 2.0安装最新的rails版本4