Last active
December 22, 2015 21:19
-
-
Save ashikawa/6532731 to your computer and use it in GitHub Desktop.
Mac に rubyenv インストールしたメモ。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"cmd": ["/Users/foo/.rbenv/shims/ruby", "$file"] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# @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