System : Ubuntu
RVM Ruby 安裝
# 先查詢可安裝的Ruby列表
# 安裝 Ruby
- rvm install 2.1.4 //會跳出詢問要輸入 ubuntu password
====== 密碼詢問的提示 =======
Updating system..ubuntu password required for 'apt-get --quiet --yes update':
在這時後,輸入ubuntu的密碼後按下Enter就會開始安裝Ruby
#安裝 第二套 ruby
#查詢安裝狀態
========== rvm list 輸出結果 ========================
ubuntu@ubuntu:~$ rvm list
rvm rubies
=> ruby-2.0.0-p643 [ x86_64 ]
* ruby-2.1.4 [ x86_64 ]
# => - current
# =* - current && default
# * - default
# 切換使用版本
- rvm use 2.1.4 //current 會切換成 2.1.4
# 設定預設版本
# 查詢目前機器Ruby資訊
#如果想切回原本系統上的 Ruby (已經使用了rvm 這個除非有特殊需求,不然就少用吧)