winnfsd / vagrant-winnfsd

Manage and adds support for NFS for Vagrant on Windows.
Other
567 stars 62 forks source link

Installation Error -- Windows 8.1 #40

Closed anfibil closed 9 years ago

anfibil commented 9 years ago

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:

C:/HashiCorp/Vagrant/embedded/bin/ruby.exe extconf.rb 
checking for ffi.h... no
checking for ffi.h in /usr/local/include,/usr/include/ffi... no
checking for rb_thread_blocking_region()... yes
checking for rb_thread_call_with_gvl()... yes
checking for rb_thread_call_without_gvl()... yes
checking for ffi_prep_cif_var()... no
creating extconf.h
creating Makefile

make "DESTDIR="
generating ffi_c-i386-mingw32.def
Configuring libffi
make -C "/c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi-i386-mingw32"
make[1]: Entering directory `/c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi-i386-mingw32'
make "AR_FLAGS=" "CC_FOR_BUILD=" "CFLAGS=-Wall -fexceptions" "CXXFLAGS=" "CFLAGS_FOR_BUILD=" "CFLAGS_FOR_TARGET=" "INSTALL=/usr/bin/install -c" "INSTALL_DATA=/usr/bin/install -c -m 644" "INSTALL_PROGRAM=/usr/bin/install -c" "INSTALL_SCRIPT=/usr/bin/install -c" "JC1FLAGS=" "LDFLAGS=-LC:\HashiCorp\Vagrant\embedded\lib" "LIBCFLAGS=" "LIBCFLAGS_FOR_TARGET=" "MAKE=make" "MAKEINFO=/bin/sh /c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi/missing --run makeinfo " "PICFLAG=" "PICFLAG_FOR_TARGET=" "RUNTESTFLAGS=" "SHELL=/bin/sh" "exec_prefix=/usr/local" "infodir=/usr/local/share/info" "libdir=/usr/local/lib" "mandir=/usr/local/share/man" "prefix=/usr/local" "AR=ar" "AS=as" "CC=gcc" "CXX=g++" "LD=c:/hashicorp/vagrant/embedded/mingw/i686-w64-mingw32/bin/ld.exe" "NM=/usr/mingw/bin/nm" "RANLIB=ranlib" "DESTDIR=" all-recursive
make[2]: Entering directory `/c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi-i386-mingw32'
Making all in include
make[3]: Entering directory `/c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi-i386-mingw32/include'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi-i386-mingw32/include'
Making all in testsuite
make[3]: Entering directory `/c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi-i386-mingw32/testsuite'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi-i386-mingw32/testsuite'
Making all in man
make[3]: Entering directory `/c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi-i386-mingw32/man'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi-i386-mingw32/man'
make[3]: Entering directory `/c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi-i386-mingw32'
/bin/sh ./libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I/c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi  -I. -I/c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi/include -Iinclude -I/c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi/src -DRUBY_EXTCONF_H=\"extconf.h\" -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D_FILE_OFFSET_BITS=64  -g  -Wall -fexceptions -c -o src/debug.lo /c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi/src/debug.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I/c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi -I. -I/c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi/include -Iinclude -I/c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi/src -DRUBY_EXTCONF_H=\"extconf.h\" -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D_FILE_OFFSET_BITS=64 -g -Wall -fexceptions -c /c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi/src/debug.c  -DDLL_EXPORT -DPIC -o src/.libs/debug.o
/bin/sh ./libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I/c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi  -I. -I/c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi/include -Iinclude -I/c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi/src -DRUBY_EXTCONF_H=\"extconf.h\" -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D_FILE_OFFSET_BITS=64  -g  -Wall -fexceptions -c -o src/prep_cif.lo /c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi/src/prep_cif.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I/c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi -I. -I/c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi/include -Iinclude -I/c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi/src -DRUBY_EXTCONF_H=\"extconf.h\" -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D_FILE_OFFSET_BITS=64 -g -Wall -fexceptions -c /c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi/src/prep_cif.c  -DDLL_EXPORT -DPIC -o src/.libs/prep_cif.o
/bin/sh ./libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I/c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi  -I. -I/c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi/include -Iinclude -I/c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi/src -DRUBY_EXTCONF_H=\"extconf.h\" -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D_FILE_OFFSET_BITS=64  -g  -Wall -fexceptions -c -o src/types.lo /c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi/src/types.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I/c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi -I. -I/c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi/include -Iinclude -I/c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi/src -DRUBY_EXTCONF_H=\"extconf.h\" -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D_FILE_OFFSET_BITS=64 -g -Wall -fexceptions -c /c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi/src/types.c  -DDLL_EXPORT -DPIC -o src/.libs/types.o
/bin/sh ./libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I/c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi  -I. -I/c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi/include -Iinclude -I/c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi/src -DRUBY_EXTCONF_H=\"extconf.h\" -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D_FILE_OFFSET_BITS=64  -g  -Wall -fexceptions -c -o src/raw_api.lo /c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi/src/raw_api.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I/c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi -I. -I/c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi/include -Iinclude -I/c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi/src -DRUBY_EXTCONF_H=\"extconf.h\" -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D_FILE_OFFSET_BITS=64 -g -Wall -fexceptions -c /c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi/src/raw_api.c  -DDLL_EXPORT -DPIC -o src/.libs/raw_api.o
/bin/sh ./libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I/c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi  -I. -I/c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi/include -Iinclude -I/c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi/src -DRUBY_EXTCONF_H=\"extconf.h\" -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D_FILE_OFFSET_BITS=64  -g  -Wall -fexceptions -c -o src/java_raw_api.lo /c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi/src/java_raw_api.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I/c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi -I. -I/c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi/include -Iinclude -I/c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi/src -DRUBY_EXTCONF_H=\"extconf.h\" -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D_FILE_OFFSET_BITS=64 -g -Wall -fexceptions -c /c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi/src/java_raw_api.c  -DDLL_EXPORT -DPIC -o src/.libs/java_raw_api.o
/bin/sh ./libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I/c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi  -I. -I/c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi/include -Iinclude -I/c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi/src -DRUBY_EXTCONF_H=\"extconf.h\" -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D_FILE_OFFSET_BITS=64  -g  -Wall -fexceptions -c -o src/closures.lo /c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi/src/closures.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I/c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi -I. -I/c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi/include -Iinclude -I/c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi/src -DRUBY_EXTCONF_H=\"extconf.h\" -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D_FILE_OFFSET_BITS=64 -g -Wall -fexceptions -c /c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi/src/closures.c  -DDLL_EXPORT -DPIC -o src/.libs/closures.o
/bin/sh ./libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I/c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi  -I. -I/c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi/include -Iinclude -I/c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi/src -DRUBY_EXTCONF_H=\"extconf.h\" -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D_FILE_OFFSET_BITS=64  -g  -Wall -fexceptions -c -o src/x86/ffi.lo /c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi/src/x86/ffi.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I/c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi -I. -I/c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi/include -Iinclude -I/c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi/src -DRUBY_EXTCONF_H=\"extconf.h\" -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D_FILE_OFFSET_BITS=64 -g -Wall -fexceptions -c /c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi/src/x86/ffi.c  -DDLL_EXPORT -DPIC -o src/x86/.libs/ffi.o
/bin/sh ./libtool   --mode=compile gcc -DHAVE_CONFIG_H -I. -I/c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi  -I. -I/c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi/include -Iinclude -I/c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi/src -DRUBY_EXTCONF_H=\"extconf.h\" -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D_FILE_OFFSET_BITS=64  -I. -I/c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi/include -Iinclude -I/c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi/src  -c -o src/x86/win32.lo /c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi/src/x86/win32.S
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I/c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi -I. -I/c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi/include -Iinclude -I/c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi/src -DRUBY_EXTCONF_H=\"extconf.h\" -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D_FILE_OFFSET_BITS=64 -I. -I/c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi/include -Iinclude -I/c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi/src -c /c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi/src/x86/win32.S  -DDLL_EXPORT -DPIC -o src/x86/.libs/win32.o
/bin/sh ./libtool --tag=CC   --mode=link gcc -g  -Wall -fexceptions -version-info `grep -v '^#' /c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi/libtool-version`  -no-undefined -bindir "/usr/local/bin" -LC:\HashiCorp\Vagrant\embedded\lib -o libffi.la -rpath /usr/local/lib src/debug.lo src/prep_cif.lo src/types.lo src/raw_api.lo src/java_raw_api.lo src/closures.lo    src/x86/ffi.lo src/x86/win32.lo                        
./libtool: line 5988: cd: C:HashiCorpVagrantembeddedlib: No such file or directory
libtool: link: cannot determine absolute directory name of `C:HashiCorpVagrantembeddedlib'
make[3]: *** [libffi.la] Error 1
make[3]: Leaving directory `/c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi-i386-mingw32'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi-i386-mingw32'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi-i386-mingw32'
make: *** ["/c/Users/Everaldo/.vagrant.d/gems/gems/ffi-1.9.8/ext/ffi_c/libffi-i386-mingw32"/.libs/libffi_convenience.a] Error 2
micnigh commented 9 years ago

Had the same issue - find the vagrant install path and run the plugin install from the embedded msys.bat shell.

piotr-cz commented 9 years ago

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

GM-Alex commented 9 years ago

Ah, It's apparently an issue of Ruby mitchellh/vagrant#4766

So I will close this issue.

piotr-cz commented 9 years ago

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.

sfeldkamp commented 7 years ago

I was experiencing this on Win 10 Pro and the following worked for me:

  1. Update vagrant to at latest version (1.9.2)
  2. Vagrant is installed at C:\Hashicorp\Vagrant because it's short and has no spaces
  3. Open C:\Hashicorp\Vagrant\embedded\ and run msys.bat as an administrator
  4. $ vagrant plugin install vagrant-winnfsd