How to install Ruby and Jekyll on Windows 10
Updated:
How to install Ruby and Jekyll on Windows 10
-
Visit RubyInstaller web site (https://rubyinstaller.org/).
-
Click the ‘Download’ button on the web page.
- 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’).
-
After the download is complete, double-click the installation file (rubyinstaller-devkit-2.6.6-1-x64.exe).
- 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 2.6.6-1-x64 with MSYS2 License Agreement.
- 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.
- Select Components
- Check ‘MSYS2 development toolchain 2020-04-03’ option if you want to install ‘Development Kit’.
- Click the ‘Next’ button.
- Completing the Ruby 2.6.6-1-x64 with MSYS2 Setup Wizard
- After confirming that the Ruby is installed, click the ‘Finish’ button.
- 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]
- Press the ‘Enter’ key in the Command Prompt.
- i.e. Which components shall be installed? If unsure press ENTER []
- Then, ‘Command Prompt’ window closes.
- Check that the Ruby is properly installed.
- Run ‘Command Prompt’
- Enter ‘ruby -v’ in the command prompt.
- You can check the 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.
- 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.
- Enter ‘gem install jekyll bundler’ in the command prompt.
- Enter ‘jekyll -v’ in the command prompt.
- You can check the installed version of ‘jekyll’.