Definition no found: 2.3.1

Hi! I’ve ran into a problem when running command: ‘rbenv install 2.3.1’. I get the following message: 'ruby-build: definition not found: 2.3.1

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

Not sure how to proceed from here. I’ve checked the version of Ruby on my machine:

Anels-iMac:~ anelguerrero$ ruby -v
ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin14]

Can anyone help?

Hi Anel,

Try what the error method suggests: upgrade ruby-build. You can do so with brew upgrade ruby-build. Please let me know if that fixes it.