まず、Rubyのversionを確認。
以下のコマンドで確認。
$ rvm list
rvm rubies
ruby-1.8.7-p357 [ i686 ]
=* ruby-1.9.2-p290 [ x86_64 ]
# => - current
# =* - current && default
# * - default
ruby-1.9.3-p125を使いたかったので、以下のコマンドで使いたいversionのrubyを入れました。
$ rvm install 1.9.3-p125
Fetching yaml-0.1.4.tar.gz to /Users/<username>/.rvm/archives
Extracting yaml-0.1.4.tar.gz to /Users/<username>/.rvm/src
Configuring yaml in /Users/<username>/.rvm/src/yaml-0.1.4.
Compiling yaml in /Users/<username>/.rvm/src/yaml-0.1.4.
Installing yaml to /Users/<username>/.rvm/usr
Installing Ruby from source to: /Users/<username>/.rvm/rubies/ruby-1.9.3-p125, this may take a while depending on your cpu(s)...
ruby-1.9.3-p125 - #fetching
ruby-1.9.3-p125 - #downloading ruby-1.9.3-p125, this may take a while depending on your connection...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 9505k 100 9505k 0 0 290k 0 0:00:32 0:00:32 --:--:-- 202k
ruby-1.9.3-p125 - #extracting ruby-1.9.3-p125 to /Users/<username>/.rvm/src/ruby-1.9.3-p125
ruby-1.9.3-p125 - #extracted to /Users/<username>/.rvm/src/ruby-1.9.3-p125
ruby-1.9.3-p125 - #configuring
ruby-1.9.3-p125 - #compiling
ruby-1.9.3-p125 - #installing
Removing old Rubygems files...
Installing rubygems-1.8.15 for ruby-1.9.3-p125 ...
Installation of rubygems completed successfully.
ruby-1.9.3-p125 - adjusting #shebangs for (gem irb erb ri rdoc testrb rake).
ruby-1.9.3-p125 - #importing default gemsets (/Users/<username>/.rvm/gemsets/)
Install of ruby-1.9.3-p125 - #complete
そして、確認してみて、以下のような感じです。
$ rvm list
rvm rubies
ruby-1.8.7-p357 [ i686 ]
=* ruby-1.9.2-p290 [ x86_64 ]
ruby-1.9.3-p125 [ x86_64 ]
# => - current
# =* - current && default
# * - default
0 件のコメント:
コメントを投稿