The most popular way to install Ruby on Linux or macOS is using a version manager, such as RVM, rbenv, chruby, or asdf. The main ways to install Ruby are: Version managers There are plenty of options that are described in the Installing Ruby topic.
Install RubyĪfter installing prerequisite dependencies, you are ready to install the Ruby interpreter to your local machine.
For example, the Ruby Version Manager (RVM) installs the required libraries automatically while the ruby-build utility requires installing them manually.Īpart from the dependencies mentioned above, you may need to install additional tools for database and JavaScript support. Ubuntu: build-essential, libssl-dev, etc.ĭepending on the way you've chosen to install Ruby, these libraries can be installed manually or automatically. For example, depending on your operating system, these dependencies can include the following tools and libraries:
Before installing the Ruby interpreter, you need to install the dependencies required to compile Ruby on your machine. RubyMine supports the reference implementation of Ruby (Ruby MRI) and alternative implementations, such as JRuby or TruffleRuby.