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:
- 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 https://raw.githubusercontent.com/Homebrew/install/master/install)"
- Install Ruby:
brew install ruby
- Install Jekyll:
sudo gem install jekyll
- Check the version installed:
- Create a new Jekyll site at
jekyll new site
- Change into your new directory:
- 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
Tagged #jekyll, #coding.