schubergphilis / vagrant-chef-zero

Vagrant Plugin for Chef Zero
Apache License 2.0
91 stars 42 forks source link

Install Fails on Vagrant 1.3.5 (ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)) #26

Open jbpadgett opened 10 years ago

jbpadgett commented 10 years ago

I was getting a similar error trying to install vagrant-chef-zero as a Vagrant plugin using Vagrant 1.3.5 on OSX 10.8.5 and XCode 5.01.

/Applications/Vagrant/embedded/lib/ruby/1.9.1/rubygems/installer.rb:562:in rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError) /Applications/Vagrant/embedded/bin/ruby extconf.rb creating Makefile make make: *\ No rule to make target/Applications/Vagrant/embedded/include/ruby-1.9.1/x86_64-darwin12.3.0/ruby/config.h', needed by `yajl.o'. Stop.

I found a workaround solve on the Vagrant Issue #2402 that allows the install to work. See the Vagrant issue here: https://github.com/mitchellh/vagrant/issues/2402

sudo vagrant plugin install vagrant-chef-zero && sudo chown -R "$USER":staff ~/.vagrant.d/*

I am using OSX 10.8.5 XCode 5.01 Vagrant 1.3.5 VirtualBox 4.2.18

andrewgross commented 10 years ago

Thanks for the heads up, I will check this out.