Last active
August 29, 2015 13:58
-
-
Save mribica/10271183 to your computer and use it in GitHub Desktop.
rbenv ruby with readline
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
$ brew update | |
$ brew install rbenv | |
$ brew install ruby-build | |
$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile | |
$ echo 'eval "$(rbenv init -)"' >> ~/.bash_profile | |
$ env CFLAGS='-g -O2' RUBY_CONFIGURE_OPTS="--with-readline-dir=/usr/include/readline" rbenv install 2.0.0-p451 | |
$ rbenv global 2.0.0-p451 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment