恵比寿ではたらくSEの適当なブログ

日々の出来事をたまに書きます

bundle installでAn error occurred while installing json (1.7.5)というエラー

Rails2.3.11からRails3.2.5にバージョンアップ。
Rails3から必要なgemはbundlerを使ってインストール。
bundle install コマンドを実行!!
すると、こんなエラーが発生・・

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 json (1.7.5), and Bundler cannot continue.
Make sure that `gem install json -v '1.7.5'` succeeds before bundling.

パスにRuby1.9.2とRails2.3.11に使用していたRuby1.8.7の二つが通っていたことが原因。パスにRuby1.9.2だけを通して再実行!

Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem
is installed.

無事インストール完了!