I am trying to run bundle install
and I get the following error message (screenshots attached):
Gem::InstallError: The 'nio4r' 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'
An error occurred while installing nio4r (1.2.1), and Bundler cannot continue.
Make sure that `gem install nio4r -v '1.2.1'` succeeds before bundling.
So then, I run gem install nio4r -v '1.2.1'
and it installs perfectly as the screenshot below.
Somehow or another you're interacting with two different installations of Ruby and the on later in the PATH
has Bundler installed.
Once you install the Devkit the must install Devkit
message is completely removed from the installation.
Try running where.exe bundle
to see where the Bundler executables are at, then run where.exe gem
to see where your RubyGem executables are and compare.
If you have two different gem
executable locations then you probably could just use gem install bundler
to quickly fix the problem.