Skip to content

Instantly share code, notes, and snippets.

@jlollis
Forked from bylatt/rbenv.sh
Last active September 24, 2019 20:25
Show Gist options
  • Save jlollis/6d613426dc2f591eece5b5dd375e10c3 to your computer and use it in GitHub Desktop.
Save jlollis/6d613426dc2f591eece5b5dd375e10c3 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
curl -fsSL https://gist.github.com/mislav/055441129184a1512bb5.txt | rbenv install --patch 2.2.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment