Skip to content

Instantly share code, notes, and snippets.

@kamal-github
Last active February 8, 2016 12:50
Show Gist options
  • Save kamal-github/adb056e8f57af970dad3 to your computer and use it in GitHub Desktop.
Save kamal-github/adb056e8f57af970dad3 to your computer and use it in GitHub Desktop.

RVM and Ruby

apt-get -yqq install libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion pkg-config curl build-essential git

su - vagrant -c "sudo bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)"
adduser vagrant rvm
source /etc/profile.d/rvm.sh
su - vagrant -c "rvm pkg install libyaml"
su - vagrant -c "rvm install 2.0.0-turbo"
su - vagrant -c "rvm use 2.0.0-turbo --default"

echo "gem: --no-document" >> /etc/gemrc
su - vagrant -c "echo 'gem: --no-document' >> ~/.gemrc"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment