Posted at

Ruby1.9.3-p286インストール(RVM)

More than 5 years have passed since last update.


環境


  • 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

----------
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 1.16.13 (stable) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]

RVM reloaded!
----------



Ruby1.9.3-p286リスト表示確認


ターミナル

rvm list known

----------
[ruby-]1.9.3-[p286]
----------


Ruby1.9.3-p286インストール


ターミナル

rvm install 1.9.3-p286

----------
No binary rubies available for: osx/10.6/i386/ruby-1.9.3-p286.
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies.
Installing Ruby from source to: /Users/shu/.rvm/rubies/ruby-1.9.3-p286, this may take a while depending on your cpu(s)...
ruby-1.9.3-p286 - #downloading ruby-1.9.3-p286, this may take a while depending on your connection...
ruby-1.9.3-p286 - #extracting ruby-1.9.3-p286 to /Users/shu/.rvm/src/ruby-1.9.3-p286
ruby-1.9.3-p286 - #extracted to /Users/shu/.rvm/src/ruby-1.9.3-p286
ruby-1.9.3-p286 - #configuring
ruby-1.9.3-p286 - #compiling
ruby-1.9.3-p286 - #installing
Retrieving rubygems-1.8.24
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 371k 100 371k 0 0 1239k 0 --:--:-- --:--:-- --:--:-- 2508k
Extracting rubygems-1.8.24 ...
Removing old Rubygems files...
Installing rubygems-1.8.24 for ruby-1.9.3-p286 ...
Installation of rubygems completed successfully.
Saving wrappers to '/Users/shu/.rvm/bin'.
ruby-1.9.3-p286 - #adjusting #shebangs for (gem irb erb ri rdoc testrb rake).
ruby-1.9.3-p286 - #importing default gemsets (/Users/shu/.rvm/gemsets/)
Install of ruby-1.9.3-p286 - #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-p286

----------
Using /Users/shu/.rvm/gems/ruby-1.9.3-p286
----------


heroku toolbeltインストール(未インストール時のみ)

=> Heroku Toolbelt for Mac OS X

heroku-toolbelt.pkg実行

インストール完了後ターミナル再起動


ターミナル

heroku login



Gemインストール

使用Rubyバージョン確認


ターミナル

rvm list

----------
=* ruby-1.9.3-p286 [ x86_64 ]
----------


ターミナル

cd RAILS_APP_DIR

bundle install