Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails Installation error :The 'atomic' native gem requires installed build tools [duplicate]

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...

like image 591
Tatarao voleti Avatar asked Jul 06 '13 05:07

Tatarao voleti


4 Answers

As error message said, you need to install Ruby DevKit which can be obtained from RubyInstaller.org. (also need to check suitable Devkit version from there..)

And extract the DevKit zip file into somewhere (you are using windows then-> : c:\xxxx) Navigate to c:\xxxx and run "ruby dk.rb init" and then "ruby dk.rb install"..

And try to re-insall rails..

I hope this helps,

like image 110
Erkut Evirgen Avatar answered Nov 20 '22 20:11

Erkut Evirgen


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.

like image 41
Krishna Rani Sahoo Avatar answered Nov 20 '22 22:11

Krishna Rani Sahoo


I also gone through the same problem. :) but is my first install of ruby on windows and "pik" is not avaible so i place me in the devkit folder and try : ruby dk.rb init and ruby dk.rb install and finaly gem install rails ... no more faillure

like image 4
dada Avatar answered Nov 20 '22 20:11

dada


github.com tells us that:

The path to your RUBY_INSTALL_DIR must not contain any whitespaces (like in “C:\Program Files\Ruby193”). This is very important because whitespaces in the path to your ruby installation will cause certain error messages as soon as you try to install gems which require the DevKit.

This solved the problem of this kind for me.

like image 1
ChocapicSz Avatar answered Nov 20 '22 22:11

ChocapicSz