RVM Installe インストール注意

$ gem install rvm
$ sudo gem install rvm

このインストールの最後に rvm-install をインストールせよとのメッセージが出るが、同時にbash設定ファイル

~/.bashrc
~/.bash_profile

の編集も求められる。これを先にやって置くと:

then copy and paste the following three lines into the terminal. When you’re done, press RETURN to move the cursor to a new line and press Ctrl-D.

$ cat >> ~/.bashrc
if -s $HOME/.rvm/scripts/rvm ; then
source $HOME/.rvm/scripts/rvm
fi

Then add the same code to the ~/.bash_profile file (remembering to press Ctrl-D after you’ve pasted the three lines of text):

$ cat >> ~/.bash_profile
if -s $HOME/.rvm/scripts/rvm ; then
source $HOME/.rvm/scripts/rvm
fi


$ rvm-install


$ rvm install 1.9.2 # this will take some time; put the kettle on
$ rvm 1.9.2 --default