简体   繁体   English

在Windows 7上安装Vagrant时出现Ruby目录错误

[英]Ruby directory error while installing vagrant on windows 7

I have installed the virtualbox and vagrant on windows 7 and I want to setup the vagrant instance for development but when installing the plugin I got this error. 我已经在Windows 7上安装了virtualbox和vagrant,并且我想设置vagrant实例进行开发,但是在安装插件时出现了此错误。 Here is the tutorial which I'm following. 这是我关注的教程。 edx-devstack edx开发者堆栈

C:\HashiCorp\Vagrant\devstack
λ vagrant plugin install vagrant-vbguest
The directory where plugins are installed (the Vagrant home directory)
has a space in it. On Windows, there is a bug in Ruby when compiling
plugins into directories with spaces. Please move your Vagrant home
directory to a path without spaces and try again.

Path Variable 路径变量

λ echo %PATH%
C:\Users\Muhammad Irfan\Downloads\Compressed\cmder\bin;C:\Users\Muhammad Irfan\Downloads\Compressed\cmder\vendor\msysgit\bin;C:\Users\Muhammad Irfan\Downloads\Compressed\cmder\vendor\msysgit\mingw\bin;C:\Users\Muhammad Irfan\Downloads\Compressed\cmder\vendor\msysgit\cmd;C:\Users\Muhammad Irfan\Downloads\Compressed\cmder\vendor\msysgit\share\vim\vim74;C:\Users\Muhammad Irfan\Downloads\Compressed\cmder;C:\Users\Muhammad Irfan\Downloads\Compressed\cmder\vendor\conemu-maximus5\ConEmu;C:\Users\Muhammad Irfan\Downloads\Compressed\cmder\vendor\conemu-maximus5;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Python27\;C:\Python27\Scripts;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\TortoiseGit\bin;C:\Program Files (x86)\Bitvise SSH Client;C:\HashiCorp\Vagrant\bin;C:\Ruby193\bin;C:\Program Files (x86)\Google\google_appengine\

Ruby Version: Ruby版本:

λ ruby -v
ruby 1.9.3p551 (2014-11-13) [i386-mingw32]

Your username contains space C:\\Users\\Muhammad Irfan as a result the paths are containing spaces. 您的用户名包含空格C:\\Users\\Muhammad Irfan ,因此路径包含空格。 Which is not allowed as clearly mentioned in the error message. 如错误消息中明确提到的那样,不允许这样做。 Fix that and issue can be resolved. 解决此问题,即可解决。

For reference: Unable to install plugin hostmanager in vagrant in windows 8.1 供参考: 无法在Windows 8.1的vagrant中安装插件hostmanager

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM