rvmをインストールする
$ bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
以下のメッセージが出て、インストールは終了するはず。
Installing RVM to /usr/local/rvm/
Creating RVM system user group 'rvm'RVM: Shell scripts enabling management of multiple ruby environments.
RTFM: https://rvm.io/
HELP: http://webchat.freenode.net/?channels=rvm (#rvm on irc.freenode.net)
Cheatsheet: http://cheat.errtheblog.com/s/rvm/
Screencast: http://screencasts.org/episodes/how-to-use-rvmIn case of any issues read output of 'rvm requirements' and/or 'rvm notes'
Installation of RVM in /usr/local/rvm/ is almost complete:
First you need to add all users that will be using rvm to 'rvm' group,
and logout - login again, anyone using rvm will be operating withumask u=rwx,g=rwx,o=rx
.To start using RVM you need to run
source /etc/profile.d/rvm.sh
in all your open shell windows, in rare cases you need to reopen all shell windows.
rvmを使えるように設定ファイルを読み込めと書いてあるので、
読み込み直す
$ source /etc/profile.d/rvm.sh
First you need to~
の件は「ちょっと何言ってるか分かんないです。」です。
ruby入れる
$ rvm install ruby 1.9.3
そうすると、以下のパッケージが必要だと教えてもらえるので入れる
$ yum install -y gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel make bzip2 autoconf automake libtool bison
改めて
$ rvm install ruby 1.9.3
しばらく時間がかかります。
# Install of ruby-1.9.3-p362 - #complete
無事にインストールできました。