# Ruby interpreter gemsets

> For the complete documentation index, see [llms.txt](https://www.jetbrains.com/help/ruby/2026.3/llms.txt).

RubyMine provides the ability to work with gemsets for the RVM and rbenv [version managers](ruby-version-managers.html). Note that this functionality is supported only for [local interpreters](configuring-language-interpreter.html#add_local_ruby_interpreter).

To see gemsets available for the installed [interpreters](configuring-language-interpreter.html) , open the Settings dialog `Ctrl+Alt+S` (Windows), `⌘ Comma` (macOS), `⌘ Comma` (IntelliJ IDEA Classic (macOS)), `⌘ Comma` (macOS System Shortcuts), `Ctrl+Alt+S` (XWin), `Ctrl+Alt+S` (GNOME), `Ctrl+Alt+S` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+Alt+S` (Sublime Text), `⌘ Comma` (Sublime Text (macOS)), `Ctrl+Alt+S` (Visual Studio), `⌘ Comma` (Visual Studio (macOS)), `Meta+Comma` (TextMate), `Ctrl+Alt+S` (NetBeans), `Ctrl+Alt+S` (Eclipse), `⌘ Comma` (Eclipse (macOS)) and go to the Language & Frameworks | Ruby Interpreters page.  On this page, the gemsets are shown as the interpreter children:

![Ruby Interpreters page for RVM](https://resources.jetbrains.com/help/img/idea/2026.3/rm_gemsets_rvm_sdk_page_example.png)

For RVM, you can select a certain gemset and [install project gems](using-the-bundler.html#install_gems_local) to this gemset. On the other hand, the rbenv version manager provides the ability to select several gemsets for a project:

![Ruby Interpreters page for rbenv](https://resources.jetbrains.com/help/img/idea/2026.3/rm_gemsets_rbenv_sdk_page_example.png)

In this case, gems will be installed to the first enabled gemset. For more information about installing gems, refer to [Install gems](using-the-bundler.html#install_gems_local).

> **Note:**
> To avoid deleting any vital information from your machine, RubyMine doesn't allow you to remove gemsets from the UI. However, you can use the [Terminal](terminal-emulator.html) for this purpose.

## Create RVM gemsets

To create an RVM gemset, open the Settings dialog (`Ctrl+Alt+S` (Windows), `⌘ Comma` (macOS), `⌘ Comma` (IntelliJ IDEA Classic (macOS)), `⌘ Comma` (macOS System Shortcuts), `Ctrl+Alt+S` (XWin), `Ctrl+Alt+S` (GNOME), `Ctrl+Alt+S` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+Alt+S` (Sublime Text), `⌘ Comma` (Sublime Text (macOS)), `Ctrl+Alt+S` (Visual Studio), `⌘ Comma` (Visual Studio (macOS)), `Meta+Comma` (TextMate), `Ctrl+Alt+S` (NetBeans), `Ctrl+Alt+S` (Eclipse), `⌘ Comma` (Eclipse (macOS))), go to Language & Frameworks | Ruby, and perform the following steps:

Procedure:

1. Right-click the required interpreter and select New RVM gemset

![Ruby Interpreters page](https://resources.jetbrains.com/help/img/idea/2026.3/rm_gemsets_rvm_sdk_page_example_initial.png)

2. In the dialog that opens, select the Ruby interpreter, for which the gemset will be created. Then, specify the gemset name and click OK:

![create new rvm gemset dialog](https://resources.jetbrains.com/help/img/idea/2026.3/rm_gemsets_rvm_sdk_page_new_gemset_dialog.png)

3. The Ruby Interpreters  page will show the gemset as a child of the selected interpreter:

![Ruby Interpreters page](https://resources.jetbrains.com/help/img/idea/2026.3/rm_gemsets_rvm_sdk_page_created_asterisk.png)

Note that the asterisk is appended to the gemset name. This means that gemset is not created yet. To create it, click Apply or OK in the Settings dialog.

## Create Rbenv gemsets

RubyMine enables you to work with rbenv gemsets using the [rbenv-gemsets](https://github.com/jf/rbenv-gemset) plugin. In this case, the `.rbenv-gemsets` file manages project gemsets. RubyMine synchronizes the gemsets enabled in the Ruby page with the ones specified in `.rbenv-gemsets`. For instance, if you uncheck the gemset in Ruby, the corresponding record will be removed from the `.rbenv-gemsets` file.

Furthermore, you can create and disable gemsets right in the editor:

Procedure:

1. Open the project’s `.rbenv-gemsets` file.

2. Type the required gemset name on a separate line.

3. Use the Create ‘name’ [quick-fix](intention-actions.html) to create a gemset:

![Create gemset quick fix](https://resources.jetbrains.com/help/img/idea/2026.3/rm_gemsets_rbenv_quick_fix.png)

This gemset will be shown as a child of the current interpreter:

![Ruby Interpreters page](https://resources.jetbrains.com/help/img/idea/2026.3/rm_gemsets_rbenv_sdk_page_example.png)

4. If you remove this gemset from the `.rbenv-gemsets`, click Update libraries:

![update libraries in the editor](https://resources.jetbrains.com/help/img/idea/2026.3/rm_gemsets_rbenv_update_libraries.png)

The gemset will be disabled for the current interpreter.

> **Tip:**
> Make sure that the Scan .rbenv-gemset(s) file for gemsets changes [inspection](code-inspection.html) is enabled to be able to use this quick-fix.

