Fails to install with vagrant 1.9.6
greenaj opened this issue · comments
On OS X Sierra even if I install libxml2 with homebrew I still get:
Building nokogiri using system libraries.
pkg-config could not be used to find libxml-2.0
Please install either pkg-config
or the pkg-config gem per
gem install pkg-config -v "~> 1.1.7"
pkg-config could not be used to find libxslt
Please install either pkg-config
or the pkg-config gem per
gem install pkg-config -v "~> 1.1.7"
pkg-config could not be used to find libexslt
Please install either pkg-config
or the pkg-config gem per
gem install pkg-config -v "~> 1.1.7"
ERROR: cannot discover where libxml2 is located on your system. please make sure pkg-config
is installed.
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
Confirmed. Unfortunately, our plugin could not be installed on Vagrant 1.9.6 at all due to the bug in Vagrant: hashicorp/vagrant#8738
The fix is already merged: hashicorp/vagrant-installers#114 , so look forward to the next Vagrant release.
At the moment I can recommend rolling back to Vagrant 1.9.5 (download link) and then installing our plugin with NOKOGIRI_USE_SYSTEM_LIBRARIES
set:
$ NOKOGIRI_USE_SYSTEM_LIBRARIES=true vagrant plugin install vagrant-parallels
The problem was solved in Vagrant 1.9.7 release:
$ vagrant plugin install vagrant-parallels
Installing the 'vagrant-parallels' plugin. This can take a few minutes...
Fetching: mini_portile2-2.2.0.gem (100%)
Fetching: nokogiri-1.8.0.gem (100%)
Building native extensions. This could take a while...
Fetching: vagrant-parallels-1.7.5.gem (100%)