Search code examples
rubyvagrantphpstormvagrantfile

Error adding vagrant box in PHPStorm 7, ruby.exe error


My PHPStorm 7 installation is throwing this error whenever I try to add a box. Am I missing something?

enter image description here

I pointed to the vagrant.bat in installation directory as told here

Am I supposed to install ruby too? Didn't say something like that in vagrant's site though.


Solution

  • The path to the .bat file you are using (...\embedded\gems\...) suggests that it is ruby related .. and may require ruby for proper executing (the error message you see confirms such suggestion).

    Instead, choose vagrant executable from C:\Program Files (x86)\HashiCorp\Vagrant\bin\ folder.

    If .bat file is absent -- choose .exe one instead.