2012-10-24 68 views
1

鍵入$ curl -L https://get.rvm.io | bash -s stable --ruby用ruby安裝RVM - 是否正確安裝?

從它的外觀像輸出它成功運行:

% 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. 

但有人可以解釋什麼是運行source /Users/themaktravels/.rvm/scripts/rvm是什麼意思?

我被指示將它作爲命令運行嗎?我會關閉終端窗口,然後打開一個新窗口。

預先感謝您!

+0

它說它運行在你打開的shell窗口中,有*可能*需要重新打開它們。 –

+0

檢查[官方文檔](https://rvm.io/rvm/install/)關於安裝。 **第3部分:重新加載shell配置和測試** – fankt

回答

0

根據屏幕輸出成功安裝了RVM。

您必須將RVM設置(信息)加載到您的PATH,以便您只需鍵入rvm,並且shell知道您提及/home/blabla.../.rvm/bin/rvm,併成功運行它。

我建議你把這行代碼放到你的〜/ .bashrc或〜/ .bash_login文件中(取決於你的Linux發行版本),這樣它會在你登錄後自動加載。