Skip to content

Instantly share code, notes, and snippets.

@ashikawa
Last active December 22, 2015 21:19
Show Gist options
  • Save ashikawa/6532731 to your computer and use it in GitHub Desktop.
Save ashikawa/6532731 to your computer and use it in GitHub Desktop.
Mac に rubyenv インストールしたメモ。
{
"cmd": ["/Users/foo/.rbenv/shims/ruby", "$file"]
}
# @see http://boiled-octopus.blog.so-net.ne.jp/2013-03-23-2
brew update
brew install rbenv
brew install ruby-build
vi ~/.zshrc
# # ruby env
# export PATH="$HOME/.rbenv/bin:$PATH"
# eval "$(rbenv init -)"
source ~/.zshrc
brew install openssl
brew link openssl --force
brew install readline
brew link readline --force
brew install libyaml
brew link libyaml --force
ruby-build --definitions
# @see http://oinume.hatenablog.com/entry/mac-rbenv-install-error
export CONFIGURE_OPTS="--with-openssl-dir=`brew --prefix openssl` --with-readline-dir=`brew --prefix readline`"
rbenv install -l
rbenv install 1.9.3-p448
rbenv rehash
rbenv versions
rbenv global system
ruby -v
rbenv global 1.9.3-p44
ruby -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment