1. Linux

1.1. Ruby 2.1

Debian 8.11

1.1.1. Installation

sudo apt update
sudo apt install ruby
ruby --version

1.2. Ruby 2.3

Debian 9.13

1.2.1. Installation

sudo apt update
sudo apt install ruby
ruby --version

1.3. Ruby 2.5

Debian 10.9

1.3.1. Installation

sudo apt update
sudo apt install ruby
ruby --version

1.4. Configuration

1.4.1. Save a list of pre-installed gems

This is useful to see what additional Ruby Gems have been installed since Ruby was installed.

  • Enter the following commands at a Command Line.

    sudo gem list | sudo tee ~root/rubygems.org > /dev/null

2. Windows

2.1. Installation

Double-clicking on the installation file when logged on as a user and providing administrative privileges when prompted, will result in the program being installed for the user and not for the Administrator.

Right-clicking on the installation file when logged on as a user and selecting "Run as administrator", will result in the program being installed for the Administrator and not for the user.

Preferably use the default installation folder or at least make sure to avoid any folder name that contains spaces (e.g. Program Files).

  • Download the Ruby installer (without the development kit) from the RubyInstaller for Windows website.

  • Run the rubyinstaller-2.6.0-1-x64.exe file with administrative privileges.

  • Choose I accept the License.

  • Click Next.

C:\Ruby26-x64

■ Add Ruby executables to your PATH
■ Associate .rb and .rbw files with this Ruby installation
□ Use UTF-8 as default external encoding.
  • Click Install.

  • Uncheck Run 'ridk install' to setp MSYS2 and development toolchain.

  • Click Finish.

Enter the following optional commands at a Command Line.

ruby --version

2.2. Save a list of pre-installed gems

This is useful to see what additional Ruby Gems have been installed since Ruby was installed.

Enter the following commands at a Command Prompt with administrative privileges.

gem list > C:\Users\Administrator\RubyGems.org