Posted over 5 years ago. Visible to the public.

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

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:

(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:

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

Done. Rbenv will know about the new versions immediately.

By refactoring problematic code and creating automated tests, makandra can vastly improve the maintainability of your Rails application.

Owner of this card:

Arne Hartherz
Last edit:
over 5 years ago
About this deck:
We are makandra and do test-driven, agile Ruby on Rails software development.
License for source code
Posted by Arne Hartherz to makandra dev
This website uses cookies to improve usability and analyze traffic.
Accept or learn more