Programming Taskbook



User registration   Restore password



1100 training tasks on programming

©  M. E. Abramyan (Southern Federal University), 1998–2021


Examples | Ruby | Configuring IDE


Configuring NetBeans and RubyMine IDE for Ruby language

This page briefly describes how to config the NetBeans and RubyMine IDE for Ruby.

RubyMine 2020.2.2

1. Install the 32-bit Ruby SDK version 2.6.6-1 available at

During installation, select all offered components:

2. At the final stage of the installation, select the option for the MSYS2 configuration:

In the console window, in response to requests, just press the Enter key:

3. In command line mode, go to the C:\Ruby26\bin subdirectory and run the command gem install ffi. After successful execution of this command, the following text should appear in the console window:

C:\Ruby26\bin>gem install ffi
Fetching ffi-1.13.1-x86-mingw32.gem
Successfully installed ffi-1.13.1-x86-mingw32
Parsing documentation for ffi-1.13.1-x86-mingw32
Installing ri documentation for ffi-1.13.1-x86-mingw32
Done installing documentation for ffi after 1 seconds
1 gem installed

4. Install the RubyMine environment. It is recommended to use version 2020.2.2. Note that on the JetBrains website, students and teachers can get a free academic license to use the company's products including RubyMine. (

5. After installing the RubyMine environment, launch it, run the command File | Settings..., go to Languages & Frameworks | Ruby SDK and Gems in the window that appears, and select ruby-2.6.6-p146 [i386-mingw32] in the list of Ruby SDK versions:

If this version is not available, click the "+" button at the top of the window to automatically search for installed versions of the Ruby SDK. If the automatic search did not yield results, use the New local... command from the menu associated with the "+" button to explicitly specify the path C:\Ruby26\bin to the Ruby interpreter.

After selection the required version of the Ruby SDK, close the window by clicking OK.

6. Run the PT4Setup program (Start | All programs | Programming Taskbook 4 | PT4 Setup), and make sure that the taskbook has detected the RubyMine 2020 IDE:

If the path to the executable file rubymine64.exe was not found by the taskbook, then specify it by clicking the Browse button.

As a result of the described actions, the taskbook will be configured for use with RubyMine 2020.

NetBeans IDE 6.9

First you need to install JDK package and NetBeans IDE (the NetBeans IDE 6.9 is available at the following link:

Then you should install the Ruby plugin:

1. Run "Tools | Plugins" from the NetBeans main menu.

2. In the "Plugins" window go to the "Available Plugins" tab, check the "Ruby and Rails" checkbox and press the [Install] button.

3. After finishing installation restart the NetBeans IDE.

Then install the Ruby package (for example, During the installation select all available components.

In the command-line mode run the following command: gem install ffi (if the gem command fails then go to the bin subdirectory of the Ruby system directory and run this command again).

After loading the Ruby project (named PT_Ruby) into the NetBEans IDE you should define the Ruby Platform. Run the "File | Project Properties" command, select the "Run" section in the "Properties" dialog, and use the "Ruby Platform" combobox.

If the "Ruby Platform" combobox contains only "Built-in JRuby" item then you should click the [Manage] button, click the [Add Platform] button in the new dialog, select the Ruby directory (for example, C:\Ruby193\bin) and select the ruby.exe file in this directory. After closing the "Ruby Platform Manager" dialog you should select the "Ruby 1.9.3-p448" item in the "Ruby Platform" combobox.

NetBeans IDE 7.2, 7.3, and 7.4

First you need to install JDK package and NetBeans IDE (the NetBeans IDE 7.4 is available at the following link:

Then you should download the Ruby plugin:

After plugin downloading extract it to some directory (for example, c:\ruby_plugin).

Then run the NetBeans IDE and select "Tools | Plugins" from the NetBeans main menu.

In the "Plugins" window go to the "Settings" tab and press the [Add] button.

In the "Update Center Customizer" window enter the text Ruby in the "Name" textbox and enter the path to the plugin file updates.xml (for example, file:///c:/ruby_plugin/updates.xml) in the "URL" textbox.

Close the "Update Center Customizer" window by pressing the [OK] button and check the "Ruby" checkbox in the left-hand side of the "Plugins" window.

Then go to the "Available Plugins" tab, press the [Reload Catalog] button and find the "Ruby and Rails" checkbox. Check this checkbox and press the [Install] button.

After finishing installation restart the NetBeans IDE.

Remark. You can use external Ruby interpreter in the NetBeans 7.2–7.4 as well. For this purpose you should install the Ruby package and select it as a Ruby platform for the PT_Ruby project (see the previous subsection).




Designed by
M. E. Abramyan and V. N. Braguilevsky

Last revised: