mrdavidlaing / vagrant-unison

Vagrant plugin to sync local files to VM using Unison over SSH
MIT License
37 stars 29 forks source link

Win7 64b - Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. #17

Open 7heo opened 9 years ago

7heo commented 9 years ago

$ vagrant plugin install vagrant-unison Installing the 'vagrant-unison' plugin. This can take a few minutes... Bundler, the underlying system Vagrant uses to install plugins, reported an error. The error is shown below. These errors are usually caused by misconfigured plugin installations or transient network issues. The error from Bundler is:

An error occurred while installing json (1.8.2), and Bundler cannot continue. Make sure that gem install json -v '1.8.2' succeeds before bundling.

Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

"c:/Program Files (x86)/HashiCorp/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)/HashiCorp/Vagrant/embedded/bin/ruby -e "puts 'EXPORTS', 'Init_generator'" > generator-i386-mingw32.def' make: *\ [generator-i386-mingw32.def] Error 2

Gem files will remain installed in C:/Users/User/.vagrant.d/gems/gems/json-1.8.2 for inspection. Results logged to C:/Users/User/.vagrant.d/gems/gems/json-1.8.2/ext/json/ext/generator/gem_make.out $


The gem_make.out file contains the same output as the text above, so I won't paste/upload it.

7heo commented 9 years ago

Additionally, gem install json -v '1.8.2' fails, since /bin/env obviously doesn't exist:

$ /c/Program\ Files\ \(x86\)/HashiCorp/Vagrant/embedded/bin/gem install json -v '1.8.2'
/bin/env: ruby: No such file or directory