New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to install with vagrant 1.9.6 #301

Closed
greenaj opened this Issue Jul 2, 2017 · 2 comments

Comments

Projects
None yet
2 participants
@greenaj

greenaj commented Jul 2, 2017

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.

@legal90

This comment has been minimized.

Member

legal90 commented Jul 2, 2017

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
@legal90

This comment has been minimized.

Member

legal90 commented Jul 8, 2017

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%)

@legal90 legal90 closed this Jul 8, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment