1. Install XCode and components
    1. Install homebrew
    2. Add binaries to path if you want
    3. Install ruby
      1. (Optional) Fix homebrew links if necessary
    4. Install RVM and stable ruby
    5. Install Jekyll
    6. Check Jekyll is working
    7. cd to your blog directory
    8. install dependencies
    9. serve blog with Jekyll and Bundler

This short guide shows you how to install and run a Jekyll blog in your Mac. Mojave broke some things for me in Homebrew, so this addresses some possible issues that you may also face.

Install XCode and components

Before starting this:

Install XCode, open it and install all components it asks you to.

Install homebrew

  /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Add binaries to path if you want

  echo 'export PATH="/usr/local/opt/curl/bin:$PATH"' >> ~/.zshrc

Install ruby

brew install ruby
sudo mkdir -p /usr/local/include
sudo mkdir -p /usr/local/lib
sudo chown -R $(whoami):admin /usr/local/include
sudo chown -R $(whoami):admin /usr/local/lib
brew list -1 | while read line; do brew unlink $line; brew link $line; done

Install RVM and stable ruby

\curl -sSL https://get.rvm.io | bash -s stable --ruby

Install Jekyll

sudo gem install jekyll

Check Jekyll is working

jekyll -v

cd to your blog directory

cd /my/blog/directory 

install dependencies

bundle install

serve blog with Jekyll and Bundler

bundle exec jekyll serve