Last active
December 14, 2015 04:19
-
-
Save rummelonp/5027706 to your computer and use it in GitHub Desktop.
rbenv で必要な ruby 入れるやつ
This file contains 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
# install rbenv | |
brew install rbenv ruby-build | |
# setup rbenv | |
export RBENV_ROOT=/usr/local/var/rbenv | |
eval "$(rbenv init -)" | |
# install readline | |
brew install readline | |
# install openssl | |
brew install openssl | |
# 1.9.3 | |
RUBY_CONFIGURE_OPTS="--with-readline-dir=$(brew --prefix readline) --with-openssl-dir=`brew --prefix openssl`" rbenv install 1.9.3-p429 | |
# 2.0.0 | |
RUBY_CONFIGURE_OPTS="--with-readline-dir=$(brew --prefix readline) --with-openssl-dir=`brew --prefix openssl`" rbenv install 2.0.0-p247 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment