Hello World from OSS Silicon Valley


HowToUse/RVM/1.25


  • The added line is THIS COLOR.
  • The deleted line is THIS COLOR.
#contents

*Install&Setup [#u882e485]
*Prerequisite [#t7d95876]
-Cent OS installation (You can refer [[HowToUse/CentOS/6.5]])
or
-Ubuntu Server installation (You can refer [[HowToUse/UbuntuServer/14.04]])

:Step.1|Install EPEL
 # wget http://ftp-srv2.kddilabs.jp/Linux/distributions/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
 #rpm -ivh epel-release-6-8.noarch.rpm

:Step.2|Install libyaml-devel and lib
*Install&Setup [#u882e485]
**Cent OS [#c93f4d67]
:Step.1|Install libyaml-devel and lib
# yum install -y libyaml-devel libffi-devel

:Step.3|Install RVM
:Step.2|Install RVM
 $ \curl -sSL https://get.rvm.io | bash -s stable

:Step.4|パラメータの読み込み
When you encounter the error, follow the instruction in the stdout.

**Ubuntu [#m2ffe48c]
:Step.1|Install RVM
 $ curl -L https://get.rvm.io | bash -s stable

If you encounter the error, follow the instruction in the stdout.

*HowToUse [#m01e3b59]
**Regular Operation [#r9102ecf]

:Step.1|
Load parameters following the instruction in stdout from instllation.

(Cent OS)

 $ source ~/.rvm/scripts/rvm

:Step.5|Rubyのインストール
or

 $ source ~/.profile

(Ubuntu)

 $ source ${HOME}/.rvm/scripts/rvm

:Step.2|
Check the installed Ruby

 $ rvm list

:Step.2|
Install Ruby

 $ rvm install 2.1.3

:Step.6|Rubyの切り替え
:Step.3|
Check the Ruby path is changed to the Ruby managed under RVM

 $ which ruby

#ref(HowToUse_fig1.png,,500x365,)


:Step.4|
Switch the Ruby

 $ rvm use 2.1.3
 $ ruby -v
 [syatsuzuka@CentOS6 rubies]$ ruby -v
 ruby 2.1.3p242 (2014-09-19 revision 47630) [x86_64-linux]
 [syatsuzuka@CentOS6 rubies]$

*HowToUse [#m01e3b59]
:Step.1|
xxx
:Step.5|
Change the default version

*Contributer [#b7d9902a]
 $ rvm --default use <version>
 

*Author [#b7d9902a]
S.Yatsuzuka

*Open Discussion [#c9172a8b]
If you have questions or comments, please share them below.
We will improve the above information referring to your posting.
#article