← Back to all snippets

How to install new ruby with rbenv

David Anderson | May 15, 2019
$ cd ~/.rbenv/plugins/ruby-build
$ git pull # get latest rubies available to install
$ rbenv install 2.4.5

# rbenv installs the latest bundler gem. if you need
# to specify the version, delete the bundler that was
# automatically installed and reinstall

$ gem uninstall bundler
$ gem install bundler -v '1.17.3'

Drop your email in the box below to subscribe to my newsletter. Once per week you'll get Ruby/Rails tips, guides, job postings, and general thoughts from the web developer trenches.