Rails Installation error :The 'atomic' native gem requires installed build tools
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.
The 'json' native gem requires installed build tools
I believe those installers make changes to the path. Did you try closing and re-opening the CMD window after running them and before the last attempt to install the gem that wants devkit present?
Also, be sure you are using the right devkit installer for your version of Ruby. The documentation at devkit wiki page has a requirements note saying:
For RubyInstaller versions 1.8.7, 1.9.2, and 1.9.3 use the DevKit
4.5.2
Updating Ruby to 2.0.0 using Pik
I had the same problem - if you follow the instructions listed (ie installing devkit and following their directions [they don't actually tell you to use rubyinstaller]), you'll be fine. Also make sure that during the init phase of the Devkit instructions that it doesn't miss any of your ruby installations.
A note though, it seems that pik can't specify the x64 version of 2.0.0, so you may run into problems if that's the case. In the end I had to use the rubyinstaller for the x64 version of ruby, and then ran the x64 version of the devkit.
Hope this helps.
gem install atomic' can't find DevKit even though it's right there in the path, why?
i can share you my solution here,hope it may works
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 use 200
ruby dk.rb install It will enhance DevKit to your installed Rubies
Finally gem install rails
This will install latest rails version 4 for Ruby 2.0
gem install json -v 1.7.3 gives 'Please update your PATH to include build tools'
Make sure you install the devkit (ticking the checkboxes that will update the path) :
You might need to reinstall ruby too.
Install the DevKit
Download Development Kit from here http://rubyinstaller.org/downloads/
DevKit url at this time For use with Ruby 1.8.7 and 1.9.3: DevKit-tdm-32-4.5.2
For use with Ruby 2.0 and above (32bits version only):
DevKit-mingw64-32-4.7.2
For use with Ruby 2.0 and above (x64 - 64bits only)
DevKit-mingw64-64-4.7.2
Follow instructions here.
Or short instructions :
Unzip the zip
open command-line and go to unzipped folder
ruby dk.rb init
ruby dk.rb install
gem install rdiscount --platform=ruby
Error in set up Rails
When I get this error, it's because I forgot to install ruby1.9.1-dev and make.
installing rails fails, failed to build gem native extension
I fixed this issue by using wsl. The installation process is explained here. I also had to use this to enable wsl on windows 10 build 16299.192(settings > system > about). also after i installed everything I ran sudo apt-get install nodejs
and gem install rails
. After this, I could run the demo(wsl> rails new demo
, wsl> cd demo
, wsl> rails server
).
Cant install rails 4.0 using rubyinstaller. *** extconf.rb failed ***
You need to install Ruby DevKit if on windows, get it from: http://rubyinstaller.org/downloads/ (scroll down a little).
Gem Installer Extension Build error
I fixed the error by doing the following:
1) Run the command which gcc
2) Then based on the output adjust this command and run it: ln -s /usr/bin/gcc /usr/bin/gcc-4.2
(May have to prepend sudo if permission is denied)
The bundle command should compile the gems correctly now.
Installing Xcode will also work. I had already installed Xcode, but for some reason when I tried to launch it recently it prompted an install. Using Alfred (the quick launch application) I typed Xcode and launched the installer.
Rails Can't generate new project because of 'MAKE'
You need to be running within an environment that has software that can understand make
. Your windows environment appears to have no such software.
It looks like a common way of developing with Rails on Windows is using RubyInstaller. People here on SO with similar problems (after 30seconds of Googling) have fixed issues similar to yours with the DevKit that comes with RubyInstaller, as it provides "... A “sane” environment ... with make, gcc, sh and similar *nix build tools installed ..."
Related Topics
How to Merge Two Hashes That Have Same Keys in Ruby
Sort a List with Multiple Conditions Ruby on Rails
Generating Sequential Numbers in Multi-User Saas Application
Using Rvm, But Can't Set Current Ruby Version (Ubuntu 11.10)
Rails Render Partial in Helper
Port in Use When Not Using a Port
Ruby on Rails Collection Select - How to Pre-Select the Right Value
How to Trigger Mouse Event in Capybara Test
Converting Time in Utc to Pacific Time
How to "Nest" the Inclusion of Modules When Using the Ruby on Rails Activesupport::Concern Feature
Vim Syntax Highlighting for Ruby 1.9
Heroku and @Font-Face - Embedded Fonts Wont Display on Heroku
Set Compression Level When Generating a Zip File Using Rubyzip