Vagrant, Windows, and DigitalOcean - anybody got this working?

Posted September 13, 2013 6.4k views
I've been trying (without success) to install the plugin vagrant-digitalocean in a Windows environment. I installed the latest version of Vagrant (1.3.1) However, when I try and install the plugin for digitalocean, the install fails: $ vagrant plugin install vagrant-digitalocean Installing the 'vagrant-digitalocean' plugin. This can take a few minutes... C:/Tools2/Vagrant/embedded/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:556:in `rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError) C:/Tools2/Vagrant/embedded/bin/ruby.exe extconf.rb creating Makefile make generating generator-i386-mingw32.def compiling generator.c linking shared-object json/ext/ make install /usr/bin/install -c -m 0755 C: /usr/bin/install -c -m 0755 . /usr/bin/install: `' and `./' are the same file make: *** [and] Error 1 Unfortunately I'm too new to Vagrant / DigialOcean to know where the problem lies. (I don't seem to have any problem building the json gem in a pure ruby+devkit environment. Having spent a few hours on this without any success, I'm about to abandon hope! Does anyone have a working installation? Does anybody recognize a common problem? Thanks.
1 comment

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
6 answers
Try installing the ruby-dev package -- does that fix it?
B/f trying to install the DigitalOcean provider plugin, were you able to successfully deploy a Vagrant Box?
I ran into this problem and fixed it by installing vagrant 1.2.7
The Vagrant Google Group is also a good place for help.
Thanks everybody for the suggtetsions:

@Kamal - Vagrant installs its own ruby-dev package. I have no problem compiling gems when I install the devkit with Ruby, but Vagrant prefers to use its own (apparently broken) one.
@Pablo of vDevices - yes, VirtualBox works fine. It appears to be an issue with compiling gems for the digitalocean provider - or possibly compiling gems for any provider.
@David.Myers - Thanks - I will try installing the older version of Vagrant and see whether that works.
@Pablo of vDevices - trying to avoid creating a Google/NSA account! Couldn't see anything relevant in past postings there, and given that this problem is specific to DigitalOcean.

@David.Myers - Vagrant 1.2.7 has exactly the same problem - perhaps its breaking changes in the vagrant-digitalocean plugin. vagrant-aws installs OK, so perhaps EC2 is the answer for now.