I was setting up a new project in Ruby and get the message
Installing json (1.6.5) Unfortunately, a fatal error has occurred. Please report this error to the Bundler issue tracker at https://github.com/carlhuda/bundler/issues so that we can fix it. Thanks!
The issue is reported here, but the solution is simple.
You have to install json gem, but it give other error:
ERROR: Error installing json: 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'
In short – install DevKit and json gem and try again.
Here are more detailed steps to follow:
1. Download DevKit from here. You have to extract DevKit files to some directory (specify separate directory. The extractor didn’t create it’s own)
2. Create config.yml running
ruby dk.rb init
in the directory where you extracted DevKit.
3. Run
ruby dk.rb install
to add DevKit to Ruby
4. Install json gem with
gem install json
You are done. Run the project creation with
rails new /path/project_name
Here are more detailed steps of installing DevKit.