1 2 3 4 5 6 7 8 9 10 11 12 |
$ sudo apt update $ sudo apt-get install git gcc build-essential libreadline-dev zlib1g-dev -y $ sudo apt-get install libssl1.0-dev $ git clone https://github.com/sstephenson/rbenv.git ~/.rbenv $ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile $ echo 'eval "$(rbenv init -)"' >> ~/.bash_profile $ exec $SHELL -l $ git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build $ rbenv install --list $ rbenv install 2.4.0 $ rbenv global 2.4.0 $ rbenv versions |