Install Jekyll on Mac OS

Jekyll is a simple, blog-aware, static site generator perfect for personal, project, or organization sites. Think of it like a file-based CMS, without all the complexity. Jekyll takes your content, renders Markdown and Liquid templates, and spits out a complete, static website ready to be served by Apache, Nginx or another web server.

Open up the Terminal. We need to install “Command Line Tools” which gives us access to commonly used tools, utilities, and compilers:

xcode-select --install

Run the command below or open up Xcode which will prompt you to agree to the license:

sudo xcodebuild -license

Install Homebrew:

/usr/bin/ruby -e "$(curl -fsSL"

Install Ruby:

brew install ruby

Install Jekyll:

sudo gem install jekyll

Check the version installed:

jekyll -v

Create a new Jekyll site at ./site

jekyll new site

Change into your new directory:

cd site

Build the site and make it available on a local server:

bundle exec jekyll serve

Now browse to http://localhost:4000

Jekyll themes may require certain Ruby gem dependencies. These dependencies are stored in a Gemfile, which is packaged with the Jekyll theme. You can install these dependencies through Bundler:

gem install bundler



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ronalds Vilcins

Ronalds Vilcins

I drink a lot of tea and build beautiful websites. If you are looking to work together or just start a conversation 👉