Skip to content

Instantly share code, notes, and snippets.

@tiagoamaro
Last active December 17, 2015 05:49
Show Gist options
  • Save tiagoamaro/5560751 to your computer and use it in GitHub Desktop.
Save tiagoamaro/5560751 to your computer and use it in GitHub Desktop.
Installing ruby 2.0.0-p0 (using rbenv) with readline support
#!/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