Fix: Error installing rails: ERROR: Failed to build gem native extension.
ERROR: On a Windows System, after a fresh install of Ruby, you run the command “gem install rails” to install the Rails on the system. However, the command fails with error message reported below: C:>gem install rails Fetching: i18n-0.6.9.gem (100%) Successfully installed i18n-0.6.9 Fetching: multi_json-1.8.2.gem (100%) Successfully installed multi_json-1.8.2 Fetching: tzinfo-0.3.38.gem (100%) Successfully installed tzinfo-0.3.38 Fetching: atomic-1.1.14.gem (100%) Building native extensions. This could take a while… ERROR: Error installing rails: ERROR: Failed to build gem native extension. C:/Ruby200-x64/bin/ruby.exe extconf.rb *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. […]
Read more