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

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

Add binaries to path if you want

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

Install ruby

1
brew install ruby
1
2
3
4
5
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

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

Install Jekyll

1
sudo gem install jekyll

Check Jekyll is working

1
jekyll -v

cd to your blog directory

1
cd /my/blog/directory

install dependencies

1
bundle install

serve blog with Jekyll and Bundler

1
bundle exec jekyll serve