2013-04-28 157 views
0

我在通过Windows使用vagrant在Ubuntu VM上安装RVM时遇到问题。 RVM说我需要更改我的终端模拟器以允许登录shell,并且我不知道如何执行此操作。这是来自RVM的消息的屏幕截图。Vagrant无法在Windows上安装RVM

http://s21.postimg.org/4k1s4ojaf/Capture.png

+0

AFAIK RVM的目的不是正常的Wndows CMD.EXE下的功能 - 你可能需要例如cygwin与bash。 – cmur2 2013-04-28 20:53:18

+0

你如何登录到Ubuntu的虚拟机?你有没有额外的命令登录到用户? – mpapis 2013-04-28 21:40:12

+0

我只是使用流浪ssh ... – Lee 2013-04-29 00:14:55

回答

0

你登录后运行:

rvm get head --auto-dotfiles 

和重新登录,不要修改shell初始化文件手动

+0

你能解释一下这是什么吗?我如何编写relogin部分的脚本,因为我想从一个Vagrantfile运行所有这些? – Lee 2013-04-29 19:34:05

+0

看看https://github.com/rvm/rvm-binary - 在https://github.com/rvm/rvm-binary/blob/master/install-ruby.sh之后 - 你可以:源$ (rvm“$ 1”做rvm env --path)' - 其中'$ 1'在https://github.com/rvm/rvm-binary/blob/master/Vagrantfile#L29中给出 – mpapis 2013-04-29 21:48:01