Rails Installtion错误:'原子'原生Gem需要安装构建工具 [英] Rails Installtion error :The 'atomic' native gem requires installed build tools
问题描述
我在我的窗户上安装Rails 3。
我安装了最新的ruby 2.0.0,并且我更新了宝石。
但是当我通过使用gem install rails来安装rails时,成功的消息已经出现,但最终我发现
错误:安装rails时出错:
'atomic'原生gem需要安装构建工具
请更新PATH以包含构建工具或从'http:// rubyinstaller下载DevKit
。 org / downloads'并按照说明
在'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit'
plese help me ...
我也经历了同样的问题。经过大量研究,我发现了一个可行的解决方案。
运行以下命令:
pik list
它会告诉你
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]
如果它没有指向Ruby版本200,则运行以下命令:
pik使用200
现在运行以下命令以增强DevKit到您安装的Ruby:
ruby dk.rb install
$ c $ gem install rails
这将安装适用于Ruby 2.0的最新Rails版本4.
i m installing Rails 3 on my windows.
I installed latest ruby 2.0.0, and i updated gems.
but when i installing rails by using gem install rails , successful message has come but at last i found
ERROR: Error installing rails:
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'
plese help me...
解决方案 I have also gone through the same problem. After doing a lot of research, I found a solution that works.
Run this command:
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 it's not pointing to Ruby version 200 then run the following:
pik use 200
Now run the following to enhance DevKit to your installed Ruby:
ruby dk.rb install
Finally, run the following:
gem install rails
This will install latest Rails version 4 for Ruby 2.0.
这篇关于Rails Installtion错误:'原子'原生Gem需要安装构建工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!