The command rbenv install is missing The command rbenv install is missing ruby ruby

The command rbenv install is missing


The install command is not embedded into rbenv, it comes from the ruby-build plugin. You can install it using the command:

git clone https://github.com/rbenv/ruby-build.git "$(rbenv root)"/plugins/ruby-build

On Mac OS X you can install it through homebrew:

brew install ruby-build

On Debian (version >= 7) and Ubuntu (version >= 12.10) both rbenv and ruby-build can be installed using apt-get (or aptitude):

sudo apt-get updatesudo apt-get install rbenv ruby-build

On FreeBSD ruby-build is available in the Ports Collection, it can be install both as a binary package or build from the port:

# Using pkgng rbenv will be installedpkg install ruby-build# Building ruby-build form Ports will install rbenv only if the RBENV option is setcd /usr/ports/devel/ruby-buildmake install


I found that when using rbenv from a global directory, it's necessary to export the RBENV_ROOT variable, otherwise it won't load the plugins.

export RBENV_ROOT="/usr/local/rbenv"if [ -d "${RBENV_ROOT}" ]; then  export PATH="${RBENV_ROOT}/bin:${PATH}"fi


As everyone mentioned problem is missing ruby-build. For older versions of OS ruby-build may not be available as an apt package. In that case install using original instructions, which should've omitted the word Optional in this:

  1. (Optional) Install ruby-build, which provides the rbenv install command that simplifies the process of installing new Ruby versions.
git clone git@github.com:rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build# OR use httpgit clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build