環境
- MacBookAir
- Mac OS X 10.6.8
- rvm -v
ターミナル
rvm 1.16.13 (stable) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]
RVM更新
ターミナル
rvm get stable
----------
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 10235 100 10235 0 0 5392 0 0:00:01 0:00:01 --:--:-- 5392
Downloading RVM from wayneeseguin branch stable
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1154k 100 1154k 0 0 158k 0 0:00:07 0:00:07 --:--:-- 280k
Upgrading the RVM installation in /Users/shu/.rvm/
RVM PATH line found in /Users/shu/.bashrc /Users/shu/.zshrc.
RVM sourcing line found in /Users/shu/.bash_profile.
Upgrade Notes:
* If you wish to get more default(global) gems installed, install RVM with this flag: --with-gems="pry vagrant"
this option is remembered, it's enough to use it once.
# 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-rvm
# In case of any issues read output of 'rvm requirements' and/or 'rvm notes'
Upgrade of RVM in /Users/shu/.rvm/ is complete.
# shu0115,
#
# Thank you for using RVM!
# I sincerely hope that RVM helps to make your life easier and
# more enjoyable!!!
#
# ~Wayne
RVM reloaded!
----------
Ruby1.9.3-p327リスト表示確認
ターミナル
rvm list known
----------
[ruby-]1.9.3-[p327]
----------
Ruby1.9.3-p327インストール
ターミナル
rvm install 1.9.3-p327
----------
No binary rubies available for: downloads/ruby-1.9.3-p327.
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies.
Fetching yaml-0.1.4.tar.gz to /Users/shu/.rvm/archives
Extracting yaml to /Users/shu/.rvm/src/yaml-0.1.4
Configuring yaml in /Users/shu/.rvm/src/yaml-0.1.4.
Compiling yaml in /Users/shu/.rvm/src/yaml-0.1.4.
Installing yaml to /Users/shu/.rvm/usr
Installing Ruby from source to: /Users/shu/.rvm/rubies/ruby-1.9.3-p327, this may take a while depending on your cpu(s)...
ruby-1.9.3-p327 - #downloading ruby-1.9.3-p327, this may take a while depending on your connection...
ruby-1.9.3-p327 - #extracting ruby-1.9.3-p327 to /Users/shu/.rvm/src/ruby-1.9.3-p327
ruby-1.9.3-p327 - #extracted to /Users/shu/.rvm/src/ruby-1.9.3-p327
ruby-1.9.3-p327 - #configuring
ruby-1.9.3-p327 - #compiling
ruby-1.9.3-p327 - #installing
Removing old Rubygems files...
Installing rubygems-1.8.24 for ruby-1.9.3-p327 ...
Installation of rubygems completed successfully.
Saving wrappers to '/Users/shu/.rvm/bin'.
ruby-1.9.3-p327 - #adjusting #shebangs for (gem irb erb ri rdoc testrb rake).
ruby-1.9.3-p327 - #importing default gemsets (/Users/shu/.rvm/gemsets/), this may take time ...
Install of ruby-1.9.3-p327 - #complete
----------
Ruby1.9.3-p286インストール確認
ターミナル
rvm list
----------
rvm rubies
ruby-1.8.7-p352 [ i686 ]
ruby-1.9.2-p290 [ x86_64 ]
ruby-1.9.3-p125 [ x86_64 ]
=* ruby-1.9.3-p194 [ x86_64 ]
ruby-1.9.3-p286 [ x86_64 ]
# => - current
# =* - current && default
# * - default
----------
使用Rubyデフォルト設定変更
ターミナル
rvm --default use 1.9.3-p327
----------
Using /Users/shu/.rvm/gems/ruby-1.9.3-p327
----------
heroku toolbeltインストール(未インストール時のみ)
=> Heroku Toolbelt for Mac OS X
heroku-toolbelt.pkg実行
インストール完了後ターミナル再起動
ターミナル
heroku login
Gemインストール
使用Rubyバージョン確認
ターミナル
rvm list
----------
=* ruby-1.9.3-p327 [ x86_64 ]
----------
ターミナル
cd RAILS_APP_DIR
bundle install