How to install Ruby and Jekyll on Windows 10

Updated:

How to install Ruby and Jekyll on Windows 10

  1. Visit RubyInstaller web site (https://rubyinstaller.org/).

  2. Click the ‘Download’ button on the web page. RubyInstaller web site

  3. On the RubyInstaller Downloads web page (https://rubyinstaller.org/downloads/),
    • click the ‘Ruby+Devkit 2.6.6-1 (x64)’ link and save the file to the local folder (i.e. ‘Downloads’). Ruby Installer Downloads Page Ruby Installer file Save As
  4. After the download is complete, double-click the installation file (rubyinstaller-devkit-2.6.6-1-x64.exe). Ruby Installer file folder

  5. Setup – Ruby 2.6.6-1-x64 with MSYS2.
    • Ruby 2.6.6-1-x64 with MSYS2 License Agreement.
      • Select ‘I accept the License’ option.
      • Click the ‘Next’ button. Ruby with MSYS2 License Agreement
  6. Installation Destination and Optional Tasks
    • Input install folder ‘C:\Ruby26-x64’ into the ‘Installation Destination folder’ and check all 3 options (‘Add Ruby executables to your PATH’, ‘Associate .rb and .rbw files with this Ruby installation’, ‘Use UTF-8 as default external encoding’).
    • Click the ‘Install’ button. Installation Destination and Optional Tasks
  7. Select Components
    • Check ‘MSYS2 development toolchain 2020-04-03’ option if you want to install ‘Development Kit’.
    • Click the ‘Next’ button. Select Components Installing Components
  8. Completing the Ruby 2.6.6-1-x64 with MSYS2 Setup Wizard
    • After confirming that the Ruby is installed, click the ‘Finish’ button. Completing the Ruby
  9. Command Prompt
    • ‘Command Prompt’ window runs.
    • Press the ‘Enter’ key in the Command Prompt.
      • i.e. Which components shall be installed? If unsure press ENTER [1,3] Command Prompt window
    • Press the ‘Enter’ key in the Command Prompt.
      • i.e. Which components shall be installed? If unsure press ENTER []
      • Then, ‘Command Prompt’ window closes. Ruby Installer 2 for Windows
  10. Check that the Ruby is properly installed.
    • Run ‘Command Prompt’ Run ‘Command Prompt’
  11. Enter ‘ruby -v’ in the command prompt.
    • You can check the installed version of ‘Ruby’. installed version of ‘Ruby’
    • Enter ‘irb’ in the command prompt.
    • You can execute the IRB (Interactive Ruby).
    • Enter ‘exit()’ in the IRB prompt.
    • You can exit IRB. ‘irb’ and 'exit()' in the command prompt
  12. Install Jekyll.
    • Run ‘Command Prompt’.
    • Enter ‘gem -v’ in the command prompt.
    • You can check the installed version of ‘gem’. – RubyGems is a package manager for the Ruby programming language. ‘gem -v’ in the command prompt
    • Enter ‘gem install jekyll bundler’ in the command prompt. ‘gem install jekyll bundler’ in the command prompt
    • Enter ‘jekyll -v’ in the command prompt.
    • You can check the installed version of ‘jekyll’. ‘jekyll -v’ in the command prompt