Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save aykuli/468a6346145e8d90e9a4061bd9cbac99 to your computer and use it in GitHub Desktop.

Select an option

Save aykuli/468a6346145e8d90e9a4061bd9cbac99 to your computer and use it in GitHub Desktop.
Update rbenv --list

Update rbenv --list

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

Then try again to install ruby

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment