Use a specific Ruby version for a project NOTE: Replace the VERSION placeholder with an appropriate Ruby version, i.e. To install a new Ruby version, use the rbenv install command: $ rbenv install VERSION You should see an output message similar to this: * system (set by /home/bitnami/.rbenv/version)
To list the installed Ruby versions in your machine with rbenv, run the following command: $ rbenv version It will also allow you to test your application in multiple Ruby versions so you will have a consistent environment from development, through testing, and into production.įor more information on rbenv, check the official GitHub repository. This is convenient if you need to maintain multiple projects, dependent on different Ruby versions.
It is a command-line tool which allows you to easily install, manage, and work with multiple Ruby environments.Įvery installed Ruby interpreter using rbenv is isolated in its own directory with its libraries and gems.
Rbenv is included in all installations of Bitnami Ruby stack that use system packages.