Skip to content

Instantly share code, notes, and snippets.

@jots
Created October 28, 2016 22:31
Show Gist options
  • Save jots/b193df51f16bd8e0ede1a2759b49dfb6 to your computer and use it in GitHub Desktop.
Save jots/b193df51f16bd8e0ede1a2759b49dfb6 to your computer and use it in GitHub Desktop.
# install git
# for apt-add-repository
apt-get install -y software-properties-common
sudo apt-add-repository -y ppa:git-core/ppa
apt-get update
apt-get install -y git
#---------------- [ ruby ] ----------
apt-get -y install autoconf bison build-essential libssl-dev libyaml-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev libreadline-dev
git clone https://github.com/sstephenson/ruby-build.git
cd ruby-build
./install.sh
#ruby-build 2.2.3 /usr/local
ruby-build 2.3.1 /usr/local
echo 'gem: --no-document' >> ~/.gemrc
gem install bundler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment