1. 패키지 다운로드
1 |
<div style="font-family: 'Malgun Gothic', Meiryo, 'Segoe UI', 'Trebuchet MS', 'MS PGothic', Gulim, AppleGothic, sans-serif; font-size: 12px; line-height: normal; white-space: normal;"><font color="#ff9900">yum install gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel make bzip2 autoconf automake libtool bison iconv-devel</font><br></div><div style="color: rgb(255, 255, 255);"><br></div> |
2. install RVM ( Ruby Version Manager )
1 |
curl -L <orange style="color: orange;">get.rvm.io</orange> | bash -s <orange style="color: orange;">stable</orange> |
3. setup rvm
1 |
# source <orange style="color: orange;">/etc/profile.d/rvm.sh</orange> |
1 |
<orange style="color: orange;">[root@node1 ~]# rvm install 2.0.0 </orange> |
1 2 |
<orange style="color: orange;">[root@node1 ~]# rvm use 2.0.0 --default Using /usr/local/rvm/gems/ruby-2.0.0-p353</orange> |
1 |
<orange style="color: orange;">ruby --version</orange> |
1 2 |
<orange><font color="#ffa500" face="monospace, consolas, sans-serif"><span style="font-size: 14px; line-height: 18.1875px;">[root@node1 ~]# ruby --version ruby 2.0.0p353 (2013-11-22 revision 43784) [x86_64-linux]</span></font></orange> |