這裡是使用工具 RVM (Ruby Version Manager) ,它提供使用者在同一環境下安裝多個版本的機制。
Preparation:
- RVM need following standard GNU tools and libraries:
- bash (>= 3.2.25)
- awk
- sed
- grep
- which
- ls
- cp
- tar
- curl
- gunzip
- bunzip2
- git (>= 1.7.6)
- subversion
- For a quick and dirty way to find out if you have these programs and where they are, copy and paste the following code into your shell for name in {bash,awk,sed,grep,which,ls,cp,tar,curl,gunzip,bunzip2,git,svn} ; do which $name ; done
- Install missing packages sudo apt-get install curl git subversion
這裡因為笨啃的 Server 僅建立一個使用者,因此單純使用 Single-User 來安裝;根據 RVM 官方網站的說明,還有 Multi-User 與 Mixed mode 兩種方法,使用者可以根據自己所需來選擇。
Steps:
- Download and run the RVM installation script \curl -sSL https://get.rvm.io | bash -s stable
- Reload shell configuration and test
- Close out your current shell or terminal session and open a new one. exit
- If you use non-login shell, you will need following command to load RVM: source ~/.rvm/scripts/rvm
- Test RVM installation by executing the following command which should output 'rvm is a function'. type rvm | head -n 1
- Install all RVM dependancies package (root password required) rvm requirements
- Install Ruby
- Display a list of all "known" rubies. rvm list known
- You could install latest version or specific version:
- Latest version: rvm install ruby
- Specific version: (eg 1.9.3) rvm install 1.9.3
- [Optional] Use the installed Ruby as the default for new shells rvm use 1.9.3 --default
- Check using Ruby version ruby -v
- [Optional] Install the most recent RubyGems (This should auto complete when install Ruby) rvm rubygems current
- Install Rails
- You could install latest version or specific version:
- Latest version: gem install rails
- Specific version: (eg 3.2.13) gem install rails -v '3.2.13'
- Check Rails version gem list
The rvm function will be automatically configured for every user on the system. Read the output of installer to check which files were modified.
which ruby
Excellent article. Very interesting to read. I really love to read such a nice article. Thanks! keep rocking.Ruby on Rails Online Training Hyderabad
回覆刪除I like your post very much. It is very much useful for my research. I hope you to share more info about this. Keep posting
回覆刪除angular training
ruby on rails online course
ai online training
Qlikview Training
Spark Training
Merry Christmas Wishes
MMORPG
回覆刪除ınstagram takipçi satin al
tiktok jeton hilesi
tiktok jeton hilesi
antalya saç ekimi
instagram takipçi satın al
Instagram Takipci Satın Al
metin2 pvp serverlar
instagram takipçi satın al
TÜL PERDE MODELLERİ
回覆刪除Sms Onay
mobil ödeme bozdurma
nft nasıl alınır
Ankara Evden Eve Nakliyat
Trafik sigortasi
Dedektör
web sitesi kurma
aşk kitapları
SMM PANEL
回覆刪除Smm Panel
Https://isilanlariblog.com/
instagram takipçi satın al
hirdavatciburada.com
beyazesyateknikservisi.com.tr
servis
JETON HİLE İNDİR