Closed anfibil closed 9 years ago
Had the same issue - find the vagrant install path and run the plugin install from the embedded msys.bat shell.
executing msys.bat didn't work form me (Windows cannot find 'C:\Program'
). Running plugin installation directly from sh results in exact same error.
Looks like this never ending Windows problem with path to Program files.
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
"C:/Program Files (x86)/Vagrant/embedded/bin/ruby.exe" extconf.rb
creating Makefile
make "DESTDIR="
generating generator-i386-mingw32.def
/bin/sh: -c: line 0: syntax error near unexpected token `x86'
/bin/sh: -c: line 0: `/C/Program\ Files\ (x86)/Vagrant/embedded/bin/ruby -e "puts 'EXPORTS', 'Init_generator'" > generator-i386-mingw32.def'
make: *** [generator-i386-mingw32.def] Error 2
Ah, It's apparently an issue of Ruby: https://github.com/mitchellh/vagrant/issues/4766. I'll try again after reinstalling Vagrant
Ah, It's apparently an issue of Ruby mitchellh/vagrant#4766
So I will close this issue.
Sorry, my issue is related to Ruby, @anfibil 's errors are different. Anyway after installing Vagrant to path without spaces I could install the plugin.
I was experiencing this on Win 10 Pro and the following worked for me:
I tried installing the plugin multiple times under windows 8.1 and keep running into the same error. As a heads-up, I actually don't seem to be able to install any plugin at all. I'm using the latest version of Vagrant (1.7.2). Below is the content of my gem_make.out file following an attempt to install winnfsd: