2012年08月22日

[Ruby] rbenvのアンインストールとRVM、Railsのインストール

前回の続きです。

rvmやめてrbenvにしてみた - Meltdown Countdown rev.
http://marutanm.hatenablog.com/entry/20110818/p1

t2low:~ t2low$ rm -rf ~/.rbenv/
t2low:~ t2low$ rm -rf /usr/local/bin/rbenv
t2low:~ t2low$ rm -rf /usr/local/Cellar/rbenv/

rbenvのアンインストールがよくわからなかったので、上のサイトを参考に削除してみましたが…Homebrewでインストールしたんだから、アンインストールする手段もあったんじゃ…?
時すでに遅し、ですが。
あと「rbenv-install」ってコマンドが残りました。消し方わからんし、とりあえず放置します…。

続いてRailsのインストールです。
これはせっかく買った改訂新版 基礎Ruby on Rails (IMPRESS KISO SERIES)を見て行いました。
20ページに書いてあるとおりです。
t2low:~ t2low$ sudo gem install rails --version "~> 3.2.1" --no-rdoc --no-ri
Password:
Fetching: i18n-0.6.0.gem (100%)
Fetching: multi_json-1.3.6.gem (100%)
Fetching: activesupport-3.2.8.gem (100%)
Fetching: builder-3.0.0.gem (100%)
Fetching: activemodel-3.2.8.gem (100%)
Fetching: rack-1.4.1.gem (100%)
Fetching: rack-cache-1.2.gem (100%)
Fetching: rack-test-0.6.1.gem (100%)
Fetching: journey-1.0.4.gem (100%)
Fetching: hike-1.2.1.gem (100%)
Fetching: tilt-1.3.3.gem (100%)
Fetching: sprockets-2.1.3.gem (100%)
Fetching: erubis-2.7.0.gem (100%)
Fetching: actionpack-3.2.8.gem (100%)
Fetching: arel-3.0.2.gem (100%)
Fetching: tzinfo-0.3.33.gem (100%)
Fetching: activerecord-3.2.8.gem (100%)
Fetching: activeresource-3.2.8.gem (100%)
Fetching: mime-types-1.19.gem (100%)
Fetching: polyglot-0.3.3.gem (100%)
Fetching: treetop-1.4.10.gem (100%)
Fetching: mail-2.4.4.gem (100%)
Fetching: actionmailer-3.2.8.gem (100%)
Fetching: rack-ssl-1.3.2.gem (100%)
Fetching: thor-0.16.0.gem (100%)
Fetching: json-1.7.5.gem (100%)
Building native extensions. This could take a while...
Fetching: rdoc-3.12.gem (100%)
Depending on your version of ruby, you may need to install ruby rdoc/ri data:

<= 1.8.6 : unsupported
= 1.8.7 : gem install rdoc-data; rdoc-data --install
= 1.9.1 : gem install rdoc-data; rdoc-data --install
>= 1.9.2 : nothing to do! Yay!
Fetching: railties-3.2.8.gem (100%)
Fetching: rails-3.2.8.gem (100%)
Successfully installed i18n-0.6.0
Successfully installed multi_json-1.3.6
Successfully installed activesupport-3.2.8
Successfully installed builder-3.0.0
Successfully installed activemodel-3.2.8
Successfully installed rack-1.4.1
Successfully installed rack-cache-1.2
Successfully installed rack-test-0.6.1
Successfully installed journey-1.0.4
Successfully installed hike-1.2.1
Successfully installed tilt-1.3.3
Successfully installed sprockets-2.1.3
Successfully installed erubis-2.7.0
Successfully installed actionpack-3.2.8
Successfully installed arel-3.0.2
Successfully installed tzinfo-0.3.33
Successfully installed activerecord-3.2.8
Successfully installed activeresource-3.2.8
Successfully installed mime-types-1.19
Successfully installed polyglot-0.3.3
Successfully installed treetop-1.4.10
Successfully installed mail-2.4.4
Successfully installed actionmailer-3.2.8
Successfully installed rack-ssl-1.3.2
Successfully installed thor-0.16.0
Successfully installed json-1.7.5
Successfully installed rdoc-3.12
Successfully installed railties-3.2.8
Successfully installed rails-3.2.8
29 gems installed

Railsってよくわかってなかったのですが、gemの集合なんですかね。
t2low:~ t2low$ rails -v
Rails 3.2.8

最後にバージョンを確認しておしまい。
ようやくRailsの勉強に入ります。
長かった。
posted by t2low at 00:26| Ruby