LoginSignup
11
10

More than 5 years have passed since last update.

osxでvagrantのpluginがインストールできない

Last updated at Posted at 2014-08-26

インストールしようと試したのは以下の2つ。

  • vagrant-digitalocean
  • vagrant-vbguest

以下のようなエラーが発生してbundlerが途中で止まる。

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

NOKOGIRI_USE_SYSTEM_LIBRARIES=1を使った方法がうまくいかなかったので、githubのフォーラムを参考にgemspecを編集。

sudo vi /Applications/Vagrant/embedded/gems/specifications/vagrant-1.6.3.gemspec
  if s.respond_to? :specification_version then
    s.specification_version = 4
    s.add_dependency(%q<nokogiri>, ["= 1.6.2.1"]) #これを追加

参考
https://github.com/mitchellh/vagrant/issues/3769

11
10
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
11
10