$ brew update
$ brew install rbenv
$ brew install ruby-build
rbenv init -
を.bash_profile
に仕込む.
$ echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
Rubyのインストール.
$ brew install openssl
$ rbenv install -l
$ RUBY_CONFIGURE_OPTS="--with-openssl-dir=$(brew --prefix openssl)" rbenv install 2.0.0-p195
$ rbenv install 1.9.3-p429
デフォルトのrubyを2.0.0にする.
$ rbenv global 2.0.0-p195
bundlerインストールしてrehash.
$ gem install bundler
$ rbenv rehash
特定プロジェクトのみ適用(.ruby-version
が出力される)
$ rbenv local 2.0.0-p195