I recently re-installed my operating system. Re-installing most of my applications was a matter of downloading, unpacking and clicking.
This blog runs on Github Pages. In order to test posts before comming them to Github, I need to have something called Jekyll and a bunch of other development tools installed on my machine. Installing all of that was not so easy.
Github provides pretty good instructions on Installing Jekyll. However their site is not 100% accurate. After a lot of Googling, I finally found a combination of steps that worked. I’m writing them here in case it helps someone else.
- Install the XCode app from the App Store
- Open XCode after installation to complete the full installation
- Install XCode Developer Tools by running
- Complete steps 1 and 2 on Github page: Installing Jekyll
- Do the first part of step 3, create the Gemfile as
source 'https://rubygems.org' gem 'github-pages'
- Then instead of running
bundle install, run
sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future bundle install
Why? Well, it turns out that the latest version of Xcode ships with a compiler that treats unknown passed parameters as errors and the ARCHFLAGS fixes that (2).
If all goes well, it will install a whole bunch of gems and complete successfully.