Skip to content

Instantly share code, notes, and snippets.

@invalidusrname
Created September 18, 2018 18:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save invalidusrname/93f99e2e337050e2171b63b213bb997d to your computer and use it in GitHub Desktop.
Save invalidusrname/93f99e2e337050e2171b63b213bb997d to your computer and use it in GitHub Desktop.
ruby 2.5.1 installation via rbenv
sudo apt-get update
sudo apt-get install -y git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev software-properties-common libffi-dev nodejs
sudo apt-get install yarn
cd
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
rbenv install 2.5.1 && rbenv global 2.5.1
ruby -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment