Skip to content

Instantly share code, notes, and snippets.

@mribica
Last active August 29, 2015 13:58
Show Gist options
  • Save mribica/10271183 to your computer and use it in GitHub Desktop.
Save mribica/10271183 to your computer and use it in GitHub Desktop.
rbenv ruby with readline
$ 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