Facebook
From noone, 2 Months ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 198
  1. cd $HOME
  2. sudo apt update
  3. sudo apt install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libxml2-dev libxslt1-dev libcurl4-openssl-dev libffi-dev
  4.  
  5. git clone https://github.com/rbenv/rbenv.git ~/.rbenv
  6. echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
  7. echo 'eval "$(rbenv init -)"' >> ~/.bashrc
  8. exec $SHELL
  9.  
  10. git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
  11. echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
  12. exec $SHELL
  13.  
  14. rbenv install 2.3.1
  15. rbenv global 2.3.1
  16. ruby -v