1

输入$ curl -L https://get.rvm.io | bash -s stable --ruby

从输出看来它运行成功:

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                             Dload  Upload   Total   Spent    Left  Speed
100   185  100   185    0     0    132      0  0:00:01  0:00:01 --:--:--   296
100 10009  100 10009    0     0   5244      0  0:00:01  0:00:01 --:--:-- 75255
Please read and follow further instructions.
Press ENTER to continue.
Downloading RVM from wayneeseguin branch stable
 % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                             Dload  Upload   Total   Spent    Left  Speed
100   125  100   125    0     0    261      0 --:--:-- --:--:-- --:--:--  1168
100 1123k  100 1123k    0     0   760k      0  0:00:01  0:00:01 --:--:-- 1366k

Installing RVM to /Users/themaktravels/.rvm/
Adding rvm PATH line to /Users/themaktravels/.bashrc /Users/themaktravels/.zshenv.
RVM sourcing line found in /Users/themaktravels/.bash_profile          
/Users/themaktravels/.zprofile.

# RVM:  Shell scripts enabling management of multiple ruby environments.
# RTFM: https://rvm.io/
# HELP: http://webchat.freenode.net/?channels=rvm (#rvm on irc.freenode.net)
# Cheatsheet: http://cheat.errtheblog.com/s/rvm/
# Screencast: http://screencasts.org/episodes/how-to-use-rvm

# In case of any issues read output of 'rvm requirements' and/or 'rvm notes'

Installation of RVM in /Users/themaktravels/.rvm/ is almost complete:

  * To start using RVM you need to run `source /Users/themaktravels/.rvm/scripts/rvm`
in all your open shell windows, in rare cases you need to reopen all shell windows.



Installation of RVM in /Users/themaktravels/.rvm/ is almost complete:

* To start using RVM you need to run `source /Users/themaktravels/.rvm/scripts/rvm`
in all your open shell windows, in rare cases you need to reopen all shell windows.

但是有人能解释一下 run 是什么意思 source /Users/themaktravels/.rvm/scripts/rvm吗?

我是否被指示将其作为命令运行?我会关闭我的终端窗口,然后打开一个新窗口。

先感谢您!

4

1 回答 1

0

您根据屏幕输出成功安装了 RVM。

您必须将 RVM 设置(信息)加载到您的 PATH 中,这样您只需要键入rvm并且 shell 知道您在提及/home/blabla.../.rvm/bin/rvm,并成功运行它。

我建议您将这行代码放入您的 ~/.bashrc 或 ~/.bash_login 文件中(取决于您的 Linux 发行版本),以便在您登录后自动加载。

于 2012-10-24T02:22:58.667 回答