winnfsd / vagrant-winnfsd

Manage and adds support for NFS for Vagrant on Windows.
Other
570 stars 61 forks source link

Issue installing JSON gem on Windows 7 #19

Closed JaTochNietDan closed 10 years ago

JaTochNietDan commented 10 years ago

I run the installation command for this plugin in the root folder of my project and I get an error saying the following:

Installing the 'vagrant-winnfsd' 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.1), and Bundler cannot continue.
Make sure that `gem install json -v '1.8.1'` succeeds before bundling.

So then I run the command as it suggests and low and behold...it seemingly succeeds and the gem has been installed. Then upon running the command to install this plugin, I get the same error again. I can't figure out what's wrong here.

JaTochNietDan commented 10 years ago

Solved, the issue is when you have spaces in your vagrant home folder which defaults to your user path. You can fix this without much hassle by setting an environment variable called VAGRANT_HOME and choosing somewhere without spaces.

thinkrapido commented 10 years ago

I don't know exactly what caused the problem on my system. I tried the VAGRANT_HOME solution unsuccessfully and came up with this:

  1. download the vagrant-winnfsd-[version].gem from http://rubygems.org/gems/vagrant-winnfsd/versions
  2. vagrant plugin install vagrant-winnfsd-[version].gem

  3. check with >vagrant plugin list
bfvanrooyen commented 10 years ago

WOW! I spent days trying to figure this one out with the vmware plugin installation failing. THANKS A LOT! I wish these things was properly documented on the vagrant documentation site somewhere.

wowpatrick commented 9 years ago

Thanks @thinkrapido! Your solution also worked fine for me on Windows 7.