# yum install -y libyaml-devel libffi-devel
$ \curl -sSL https://get.rvm.io | bash -s stable
When you encounter the error, follow the instruction in the stdout.
$ curl -L https://get.rvm.io | bash -s stable $ source /home/<User Name>/.rvm/scripts/rvm
(Cent OS)
$ source ~/.rvm/scripts/rvm
or
$ source ~/.profile
(Ubuntu)
$ gpg --keyserver hkp://keys.gnupg.net --recv-keys <Specified Key Code> $ source ${HOME}/.rvm/scripts/rvm
$ rvm list known
$ rvm install 2.1.3
$ which ruby
$ rvm use 2.1.3 $ ruby -v ruby 2.1.3p242 (2014-09-19 revision 47630) [x86_64-linux] $
S.Yatsuzuka