Get Jekyll working with github-pages on Mac OSX

Jekyll is a static site generator that’s deeply integrated with Github Pages. I had to take these steps to get it working on my Mac.

I installed to /usr/local/bin because it’s already in my .bash_profile $PATH:

sudo gem install -n /usr/local/bin github-pages

Then got an error, saying something was out of date, so:

sudo gem update --system

Still getting an error unable to install gem. The Jekyll troubleshooting page suggests this:

xcode-select --install

🤔 Not sure what that does, exactly, but let’s try again now:

sudo gem install -n /usr/local/bin github-pages
jekyll -v

Hey, it worked.

Written on October 28, 2015