Last active
December 17, 2015 05:49
-
-
Save tiagoamaro/5560751 to your computer and use it in GitHub Desktop.
Installing ruby 2.0.0-p0 (using rbenv) with readline support
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
#!/bin/bash | |
#This script needs rbenv and ruby-build | |
#Rbenv: https://github.com/sstephenson/rbenv/ | |
#Ruby Build: https://github.com/sstephenson/ruby-build | |
#Installation variables | |
#Choose your ruby version and readline path | |
RUBY_VERSION=2.0.0-p0 | |
READLINE_PATH=/usr/include/readline | |
# Install libreadline-dev | |
sudo apt-get install libreadline-dev | |
CONFIGURE_OPTS="--disable-install-doc --with-readline-dir=$READLINE_PATH" rbenv install $RUBY_VERSION | |
rbenv rehash | |
rbenv global $VERSION |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment