Skip to content

Instantly share code, notes, and snippets.

@bylatt
Last active September 24, 2019 20:21
Show Gist options
  • Save bylatt/549ff12e4ef17b45e371 to your computer and use it in GitHub Desktop.
Save bylatt/549ff12e4ef17b45e371 to your computer and use it in GitHub Desktop.
Install ruby 2.2.3 with rbenv and ruby-build on Ubuntu 14.04
# install ruby 2.2.3 with rbenv on ubuntu 14.04
sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
git clone https://github.com/sstephenson/rbenv-gem-rehash.git ~/.rbenv/plugins/rbenv-gem-rehash
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
exec $SHELL
rbenv install 2.2.3
rbenv global 2.2.3
rbenv rehash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment