Has anyone got a solution for this? Ive tried everything online installing DevKit, env vars in paths etc and still nothing ....
C:\Sites>gem install rails
Fetching: atomic-1.1.14.gem (100%)
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing rails:
ERROR: Failed to build gem native extension.
C:/RailsInstallerR/Ruby1.9.3/bin/ruby.exe extconf.rb
creating Makefile
make
generating atomic_reference-i386-mingw32.def
make: *** [atomic_reference-i386-mingw32.def] Error 253
Gem files will remain installed in C:/RailsInstallerR/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/atomic-1.1.14 for inspection.
Results logged to C:/RailsInstallerR/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/atomic-1.1.14/ext/gem_make.out
I too had almost the same problem while installing the latest version of rails with ruby193 installed on a Win7 machine. The installation used to break while running extconf.rb and with a error in creating Makefile as well.
I too had installed DevKits for ruby193 and set all environments, used pik to set the correct ruby version etc etc. But still it failed to install the latest rails.
So I tried installing older version of rails (3.0.5) and it installed perfectly. If you can do your work with an older version then you can try installing 3.0.5 using the following command :
Hope that works!