Paul Chilton

Electronics, Home Automation & Software Development

View all Articles

Installing Jekyll on Windows

10 Jan 2017

Summarising the instructions from the Jekyllrb Site these are the steps to install Jekyll on Windows and run Jekyll to serve pages from the local copy of a Github Pages site.

Open Powershell as an administrator.

Set-ExecutionPolicy -ExecutionPolicy Unrestricted
Answer yes when prompted

iwr -UseBasicParsing | iex
choco install ruby -y

Reopen Powershell as as administrator.

Set-ExecutionPolicy -ExecutionPolicy Unrestricted
Answer yes when prompted

gem --version

If the version is less than 2.6 than you need to follow these instructions to update the package otherwise you can get SSL errors when running gem install. Download the rubygems update:

gem install --local C:\rubygems-update-2.6.7.gem
update_rubygems --no-ri --no-rdoc
gem --version
Check the above call gives the correct version
gem uninstall rubygems-update -x
gem install jekyll
choco install ruby2.devkit

cd C:\tools\DevKit2
ruby dk.rb init

Edit C:\Tools\Devkit2.yml and include the path to Ruby “- C:\tools\ruby23”

choco install libxml2 -Source ""
choco install libxslt -Source ""
choco install libiconv -Source ""

gem install nokogiri --with-xml2-include=C:\Chocolatey\lib\libxml2.\build\native\include --with-xml2-lib=C:\Chocolatey\lib\libxml2.redist.\build\native\bin\v110\x64\Release\dynamic\cdecl --with-iconv-include=C:\Chocolatey\lib\libiconv.\build\native\include --with-iconv-lib=C:\Chocolatey\lib\libiconv.redist.\build\native\bin\v110\x64\Release\dynamic\cdecl  --with-xslt-include=C:\Chocolatey\lib\libxslt.\build\native\include --with-xslt-lib=C:\Chocolatey\lib\libxslt.redist.\build\native\bin\v110\x64\Release\dynamic
gem install bundler

Navigate to your blog root folder and run:
bundle update
bundle install
bundle exec jekyll s
Switching to Github Pages & Jekyll   Office 365 - Assigning delegate access to a group