This guide is vaild for windows with Fall Creators Update installed.
1. Configuring bash
- Install Linux distributions from Windows Store: Ubuntu, openSUSE Leap 42, SUSE Linux Enterprise Server 12 (Ubuntu is recommended, because package management on SUSE is not trivial). Every distribution installs it's own executable: ubuntu.exe, opensuse-42.exe, sles-12.exe. All distributions has same command line interface.
Set default user to root by running:
Install and configure ruby and libraries (this command is valid for Ubuntu distribution only, use google to search for SUSE configuration and update this guide):
This will install libraries that currently necessary to build native extensions later and forces ruby to use default gem paths (necessary for now). Last command requires user confirmations on replacing binaries like rake, rdoc, etc.
Uninstallation can be performed using Add/Remove program windows tool.
- NB: To make spring work properly, you should open bash console and keep it opened. Otherwise, spring will start and stop immediately.
2. Add SDK into RubyMine
Open Settings via File | Settings | Ruby SDK and Gems.... Click + and select Remote SDK..., then select WSL option
Make sure that bash is running at the moment:
Press OK to add new remote SDK and see results in the list of SDK: