How to Install Jekyll on Windows 10 Example |Video upload date:  · Duration: PT4M49S  · Language: EN

Step by step guide to install Jekyll on Windows 10 using RubyInstaller MSYS2 and gems for local static site development

So you want a static site that does not require finger crossing every time you push code. Good choice. This guide walks through installing Jekyll on Windows 10 using RubyInstaller, MSYS2, and Bundler so you can build and serve a local static site without weeping into the terminal.

What you will need

Short list so you do not get surprised halfway through

  • Windows 10
  • RubyInstaller for Windows with the MSYS2 development toolchain enabled
  • Basic comfort with the command line

Install Ruby and enable MSYS2

Download RubyInstaller for Windows from the official site and run the installer. When the installer asks to set up the MSYS2 development toolchain agree to it. That toolchain provides the native libraries some gems need to compile.

After installation open a new command prompt that has Ruby on the PATH. If the installer included the ridk helper you can run the helper to finish MSYS2 setup. Restart your terminal after the installation steps so environment changes take effect.

Quick verification commands

ruby -v
gem -v

If ruby and gem return versions you are ready to install Jekyll.

Install Jekyll and Bundler

Keep calm and run the gem command. Bundler keeps your gem versions from surprising you later.

gem install jekyll bundler

If gem compilation fails check that MSYS2 was installed and that you restarted the command prompt after Ruby installation. If native extensions fail open the MSYS2 shell and update packages with the package manager. A common fix is running the MSYS2 shell and updating with pacman.

Create and serve a new Jekyll site

The generator scaffolds everything so you can stop imagining the folders and actually have them. Replace mysite with your preferred name.

jekyll new mysite
cd mysite
bundle install
bundle exec jekyll serve

Bundler ensures consistent versions across systems. The last command starts a local server. Open the address shown in the terminal in your browser to view the site. If the page does not load check the terminal for errors and fix any missing gems or permission issues.

Troubleshooting tips that actually help

  • If gem install fails make sure MSYS2 was installed and the terminal was restarted after Ruby installation
  • If native extensions fail open the MSYS2 shell and run the package manager updates with pacman to refresh libraries
  • If you hit repeated native build errors consider using Windows Subsystem for Linux for a smoother Unix like build environment
  • Read the terminal output it is grumpy but truthful and often tells you exactly what is wrong

Wrap up and final snark

This guide covered installing Ruby and MSYS2 in Windows 10 installing Jekyll and Bundler creating a new site and serving it locally. Follow the commands above and check terminal messages for clues if something goes sideways. And if you get tired of native build surprises try WSL for fewer headaches.

Now go create a static site that looks expensive but was built with minimal suffering.

I know how you can get Azure Certified, Google Cloud Certified and AWS Certified. It's a cool certification exam simulator site called certificationexams.pro. Check it out, and tell them Cameron sent ya!

This is a dedicated watch page for a single video.