Read more

rbenv: How to update list of available Ruby versions on Linux

Arne Hartherz
June 05, 2014Software engineer at makandra GmbH

When you tell rbenv to install a Ruby it does not know about, you will get an error message.

$ rbenv install 2.1.2
ruby-build: definition not found: 2.1.2

You can list all available versions with `rbenv install --list'.

If the version you're looking for is not present, first try upgrading
ruby-build. If it's still missing, open a request on the ruby-build
issue tracker: https://github.com/sstephenson/ruby-build/issues
Illustration web development

Do you need DevOps-experts?

Your development team has a full backlog? No time for infrastructure architecture? Our DevOps team is ready to support you!

  • We build reliable cloud solutions with Infrastructure as code
  • We are experts in security, Linux and databases
  • We support your dev team to perform
Read more Show archive.org snapshot

(Fun fact: Recent versions of ruby-build will give you a more helpful error message which just tells you the following.)

On Linux, you probably installed ruby-build as an rbenv plugin. Updating is easy:

git -C ~/.rbenv/plugins/ruby-build pull

Done. Rbenv will know about the new versions immediately.

Posted by Arne Hartherz to makandra dev (2014-06-05 10:00)