0

以下是我的 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
4

1 回答 1

1

我可以在这里分享我的解决方案,希望它可以工作

密码列表

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

皮克使用 200

ruby dk.rb install它将为您安装的 Ruby 增强 DevKit

最后gem install rails

这将为 Ruby 2.0 安装最新的 Rails 版本 4

于 2014-02-15T08:35:23.067 回答