Open PaulForgey opened 4 years ago
Hey there @PaulForgey - This was already fixed via https://github.com/hashicorp/vagrant-installers/pull/164 and should be in the next release, Vagrant 2.2.10. Sorry for the trouble!
Oops, I seem to have misread the version you listed. Interesting. I think this should of been fixed in 2.2.9 according to the issue I posted.
issue does not reproduce for me in 2.2.6 FWIW
TLDR: if you're trying to make vagrant work until it's patched, install the Xcode CLI tools.
I'm getting the same error trying to update installed plugins (vagrant plugin update
) after install v2.2.9.
I did not previously have the Xcode CLI tools installed, and as such the path /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
did not exist on my machine.
After installing the CLI tools, it exists as a symlink, and it appears to work.
But original issue has a comment identifying an easier solution than relying on that symlink: use the path given by xcrun --sdk macosx --show-sdk-path
instead of the hard-coded path.
Vagrant version
Vagrant 2.2.9
Host operating system
macOS 10.15.4 xcode 11.4.1 (this is relevant)
Guest operating system
n/a
Vagrantfile
n/a (this is an issue with installation)
Debug output
https://gist.github.com/PaulForgey/607463ba29e850e7ba9ae4d72d41a547
output of nokogiri's mkmf.log:
A WORKING COMPILER IS INSTALLED ON THIS SYSTEM. The configuration script is wrongly telling the compiler to ignore the system header search path and presuming much about the compiler's invocation.
Expected behavior
The plugin should have installed successfully
Actual behavior
The nokogiri dependency is broken
Steps to reproduce
References