2016-03-28 4 views
1

私は窓7で浮浪者、司書・シェフをインストールしていますが、それはこのエラーを表示されます。WindowにVagrant-Librarian-Chefをインストールできませんか?

Installing the 'vagrant-librarian-chef' 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 chef (12.8.1), and Bundler cannot continue. Make sure that gem install chef -v '12.8.1' succeeds before bundling.

Warning: this Gemfile contains multiple primary sources. Using source more than once without a block is a security risk, and may result in installing unexpected gems. To resolve this warning, use a block to indicate which gems should come from the secondary source. To upgrade this warning to an error, run bundle config disable_multisource true .Errno::ENOENT: No such file or directory @ dir_s_mkdir - C:/Users/tuan/.vagrant.d/gems/gems/chef-12.8.1-universal-mingw32/acceptance/top-cookbooks/test_run/learn-the-basics-ubuntu/cookbooks/learn-the-basics-ubuntu/.kitchen/kitchen-vagrant/kitchen-learn-the-basics-ubuntu-learn-the-basics-ubuntu-default-ubuntu-1404

plsは私はそれを修正するのに役立ちます。

ありがとうございます!

+0

'gem install chef -v '12 .8.1 'を先に実行しようとしましたが、どうなりますか? [Vagrant-librarian-chef](https://github.com/jimmycuadra/vagrant-librarian-chef)プラグインはもはや積極的に維持されておらず、最終的にVagrant〜1.5で作業していました。アクティブなソリューション。 –

答えて

1

「オハイ」ルビーの宝石を使用しているとき、私は同様の問題を抱えていました。私はgem install chef -v '12.8.1'を実行しようとしましたが、エラーが発生しました。問題を解決しました。私のgemfileに

gem 'chef-config', '~>12.7.2' 

を追加しました。

私の宝石依存ツリー(gem dependency)を見て、「ohai」の宝石がchef-config 12.8を使用しようとしていたことに気付きました。

関連する問題