VagrantでChef-Solo環境を構築しようとしていて
vagrant-omnibusプラグインをインストールしようとしたところエラーが発生。
エラー内容
% vagrant plugin install vagrant-omnibus Installing the 'vagrant-omnibus' plugin. This can take a few minutes... Bundler, the underlying system Vagrant uses to install plugins, reported an error. The error is shown below. These errors are usually caused by misconfigured plugin installations or transient network issues. The error from Bundler is: An error occurred while installing nokogiri (1.6.5), and Bundler cannot continue. Make sure that `gem install nokogiri -v '1.6.5'` succeeds before bundling.
nokogiriが入らない・・・。 いろいろやったが入らない。
とりあえずバージョンをチェック
% vagrant -v Vagrant 1.6.3
1.6.3らしい。
最新版をチェック
↑から最新版をダウンロードしてインストール。
現在の最新バージョンは1.7.1でした。
リトライ!
% vagrant plugin install vagrant-omnibus Installing the 'vagrant-omnibus' plugin. This can take a few minutes... Installed the plugin 'vagrant-omnibus (1.4.1)'!
Complete!!
その他
事象についてはいろいろあるかと思いますが
下記の記事のようにXcodeのインストールで解決するケースもあるようです。
Macでvagrant-omnibusプラグインのインストール中にnokogiriのインストールでコケるというお話 - 戦場のプログラマー