Skip to content

Instantly share code, notes, and snippets.

@kozy4324
Last active December 18, 2015 03:48
Show Gist options
  • Save kozy4324/5720390 to your computer and use it in GitHub Desktop.
Save kozy4324/5720390 to your computer and use it in GitHub Desktop.
rbenvめも

rbenv

$ 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment