-
-
Notifications
You must be signed in to change notification settings - Fork 1
HOWTO dev Rbenv
steveoro edited this page Jan 16, 2021
·
1 revision
Follow these steps:
(Substitute DESIRED_RUBY_VERSION
with the Ruby version you're willing to use; i.e.: 2.3.3
, 2.5
, 2.6.1
, ...)
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
exec $SHELL
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
exec $SHELL
rbenv install DESIRED_RUBY_VERSION
rbenv global DESIRED_RUBY_VERSION
ruby -v