RVM (auto?)update (on Mac)
UbuntuでRVMを導入しましたが
Ubuntu 14.04にRVMを導入 - ハイパーニートプログラマーへの道
今回はMacのほうで、こんなんでまして
$ rvm list known Warning, new version of rvm available '1.25.30', you are using older version '1.25.29'. You can disable this warning with: echo rvm_autoupdate_flag=0 >> ~/.rvmrc You can enable auto-update with: echo rvm_autoupdate_flag=2 >> ~/.rvmrc
なのでそのまんまecho rvm_autoupdate_flag=2 >> ~/.rvmrc
やってみましたが・・・。
$ echo rvm_autoupdate_flag=2 >> ~/.rvmrc noriyo-no-MacBook-Pro:~ noriyo_tcp$ rvm list known Found old RVM 1.25.29 - updating. Downloading https://get.rvm.io Downloading https://github.com/wayneeseguin/rvm/archive/stable.tar.gz Upgrading the RVM installation in /Users/noriyo_tcp/.rvm/ RVM PATH line found in /Users/noriyo_tcp/.profile /Users/noriyo_tcp/.bashrc /Users/noriyo_tcp/.zshrc. RVM sourcing line found in /Users/noriyo_tcp/.bash_profile /Users/noriyo_tcp/.zlogin. Upgrade of RVM in /Users/noriyo_tcp/.rvm/ is complete. # noriyotcp, # # Thank you for using RVM! # We sincerely hope that RVM helps to make your life easier and more enjoyable!!! # # ~Wayne, Michal & team. In case of problems: http://rvm.io/help and https://twitter.com/rvm_io Upgrade Notes: * WARNING: You have '~/.profile' file, you might want to load it, to do that add the following line to '/Users/noriyo_tcp/.bash_profile': source ~/.profile * No new notes to display
なんかwarning出てるので、source ~/.profile
を.bash_profile
の中に記述しときましたが。よくわからんです。
(9.30追記)いいみたいですね。
解決方法
$ echo 'source ~/.profile' >> ~/.bash_profile
$ source ~/.bash_profile
Mac OS Xに最新バージョンのRubyをインストールする - 前人未踏の領域へ
確認します。
$ rvm -v rvm 1.25.30 (stable) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]
RVMの更新はupdate
ではなくてget
を使うそうですが・・・。