Rails安装错误:“原子"本机gem需要安装的构建工具 [英] Rails Installation error :The 'atomic' native gem requires installed build tools

查看:103
本文介绍了Rails安装错误:“原子"本机gem需要安装的构建工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Windows上安装Rails 3. 我安装了最新的ruby 2.0.0,并更新了gems. 但是当我通过使用gem install rails安装rails时,成功消息来了,但最后我发现

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'

请帮助我...

推荐答案

我也遇到了同样的问题.经过大量研究,我找到了一个可行的解决方案.

I have also gone through the same problem. After doing a lot of research, I found a solution that works.

运行此命令:

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,则运行以下命令:

If it's not pointing to Ruby version 200 then run the following:

pik use 200

现在运行以下命令以将DevKit增强为已安装的Ruby:

Now run the following to enhance DevKit to your installed Ruby:

ruby dk.rb install

最后,运行以下命令:

gem install rails

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

This will install latest Rails version 4 for Ruby 2.0.

这篇关于Rails安装错误:“原子"本机gem需要安装的构建工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆