Skip to content

Instantly share code, notes, and snippets.

@imaz
Created November 21, 2012 08:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save imaz/4123797 to your computer and use it in GitHub Desktop.
Save imaz/4123797 to your computer and use it in GitHub Desktop.
rbenv に移行した時にやったこと
  • rvm を使わないようにする
$ mkdir rvm_backup
$ mv ~/.rvm rvm_backup
$ vi ~/.bashrc           #rvmの記載を消す
$ vi ~/.bash_profile     #rvmの記載を消す
  • rbenv, ruby-build, Ruby をインストールする
$ brew install rbenv
$ brew install ruby-build
$ brew install readline
$ brew link readline
$ brew install openssl
$ brew link openssl
$ CONFIGURE_OPTS="--with-readline-dir=/usr/local" rbenv install 1.9.3-p194
  • bashrc の一番最後に以下の設定を入れる
PATH=$HOME/.rbenv/bin:$PATH
PATH=/usr/local/bin:$PATH  #既存のPATH設定を移動
eval "$(rbenv init -)"

※PATHの設定順間違えてすごくハマった

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment