Reputation: 21
This is my first SO post. Apologies for my poor markdown.
My question relates to installing vagrant plugins on a Windows 7 host. In summary, it appears that I am unable to install vagrant plugins from a 'fresh install'
Tried:
Versions
I have freshly installed vagrant via its MSI installer at https://www.vagrantup.com/downloads.html. The vagrant version it installs is currently 1.8.3.
I've installed to the default directory: C:\HashiCorp\Vagrant. I have restarted, and the embedded/bin directory is on my path (i.e. the ruby/ gems executables and others).
I am trying to install the following plugins: vagrant-hostsupdater and vagrant-triggers for use with VVV. However, I have also attempted a few 'random' plugin installs with the exact same observed behaviour.
Running "vagrant plugin install " in a CMD prompt with Administrator privileges produces the basic error (of 'bundler') of: "Checksum of /versions does not match the checksum provided by server! Something is wrong".
Thus the plugin does not install. The same error occurs for Git-BASH, and for a non-privileged (=user) command prompt.
If I attempt to install the 'gem' via "gem install" using the embedded gem executable in ".\vagrant\embedded\bin", the gem installs without error. However it is obviously not registered with vagrant and not listed with "vagrant plugin list".
I have downloaded the vagrant-hostsupdater gem from rubygems.org; and attempted to install from the local gem. I.e. "vagrant plugin install vagrant-hostsupdater-1.0.2.gem". This produces a different displayed error: "Cannot not find gem 'vagrant-hostsupdater (=1.0.2) x86-mingw32' in any of the gem sources listed in your Gemfile or available on this machine".
I have also tried things like: reinstalling gem/ reinstalling bundle, deleting the ~.vagrant.d and ~.bundle folders (where ~ is C:\Users\my-username). Unfortunately I gleaned these things from a variety of online posts, and my changes weren't systematic. Nonetheless, nothing like this has worked.
I am new user of Vagrant, and have never used Ruby/ Gems before (Until today I thought rakes were for gardening)
The following SO posts DO NOT solve my problem: stackoverflow.com/questions/29352622/vagrant-plugin-install-fails-for-any-plugin stackoverflow.com/questions/33490258/failed-to-install-vagrant-cachier-plugin-on-windows
I am experiencing the same problem on a Windows 7 professional laptop, with the same vagrant install.
I have read online that windows development using Ruby may require the ruby "devkit". However my understanding is that Vagrant bundles its own devkit, and hence installing a separate Ruby devkit is NOT required (?) To that end, I naively ran the "devkitvars.bat" file in .\Vagrant\embedded, before attemping the vagrant plugin install, with yet the same effects.
Now I understand Vagrant and Windows might not be the best mix; however my preference is to continue with Vagrant on Windows.
Thank you for your help and time
Upvotes: 1
Views: 856
Reputation: 21
This issue appears to have been fixed by an upgrade to the Vagrant 1.8.4 windows installer.
I.e.: both the plugins: vagrant-hostsupdater and vagrant-triggers install perfectly now.
Upvotes: 0