Tags

, , ,

If you’ve encounter an errors while bundle installing:

$ bundle install
Installing i18n 0.7.0
Installing json 1.8.3 with native extensions
Gem::InstallError: The 'json' 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'
...
...
Installing coderay 1.1.0
Installing debug_inspector 0.0.2 with native extensions
...
Gem::InstallError: The 'debug_inspector' native gem requires installed build tools.
...
...
Installing http_parser.rb 0.6.0 with native extensions
Gem::InstallError: The 'http_parser.rb' 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'

Solution:
Download the Development Kit at https://github.com/oneclick/rubyinstaller/wiki/Development-Kit
Extract it somewhere (permanent e.g C:\devkit ). Then cd to it, run ruby dk.rb init and ruby dk.rb install to bind it to ruby installations in your path.

Once the devkit was installed run the bundle install again and it will work fine.

$ bundle install
...
...
Installing jquery-rails 4.0.4
Installing rails 4.2.0
Installing sass-rails 4.0.5
Installing turbolinks 2.5.3
Installing devise 3.5.1
Bundle complete! 26 Gemfile dependencies, 92 gems now installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.

NOTE: If you want to install a gem without the rdoc, simply add this line to your .gemrc

$ vi ~/.gemrc
gem: --no-document
  
Advertisements