
If you are planning to develop Rails applications on Windows 10, the Ruby interpreter installed to Windows Subsystem for Linux (WSL) might be a better choice. On Windows, you can use RubyInstaller to set up the Ruby environment quickly. These installers can be used along with version managers to switch between different Ruby versions. You can install Ruby on Linux or macOS by using third-party installers, such as ruby-build or ruby-install.

We don't recommend using this pre-installed Ruby as a project interpreter because you can encounter permission errors while installing dependencies. Ruby versions 2.0 and later are included by default in macOS since El Capitan (10.11). Learn how to configure a project interpreter installed in this way from Add a local interpreter. For example, this can be apt or snap for Ubuntu and Homebrew for macOS.

You can install Ruby on Linux or macOS by using the system's package manager. You can learn more from the Ruby version managers topic. IntelliJ IDEA automatically detects interpreters installed on a local machine and maintained by version managers. Version managers allow you to install several Ruby versions on your machine and quickly switch between them.

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. IntelliJ IDEA supports the reference implementation of Ruby (Ruby MRI) and alternative implementations, such as JRuby or TruffleRuby. Set up a Ruby development environment Install prerequisite dependencies
