How to set up jekyll in Mac OS

Reading time ~1 minute

Bought a new computer recently. And trying to set it up my old blog repository.

The instruction on Jekyll website is straight forward. Install with an easy command line and you are done.

However, when I tried to run this command in my Mac terminal, it failed serval time. The error message is:

Operation not permitted - /usr/bin/jekyll

This error is caused by Apple’s System Integrity Protection. Old ruby gem didn’t handle it well.

Jekyll support document gives us two solutions.

The first one is install jekyll with a more complex command line, which is not working for me.

The second solution do give me a clue about installing luby using homebrew. It turns out, homebrew will install a very latest version of ruby. After installing this very latest ruby, I updated my gem with:

sudo gem update --system

This command runs smoothly. But when I tried to run

jekyll serve

It gives me another error message about missing paginate and pygments. Solution to this is pretty straight forward, install them:

sudo gem install jekyll-paginate
sudo gem install pygments.rb

Note: all commands start with sudo will require a super user privilege.

comments powered by Disqus

覆巢之下(1)

## AWS与全球最大的同性交友网站### 什么是云? 熟悉科技行业的人,往往都不可避免的了解过**AWS(Amazon Web Service)**,AKA,亚马逊云服务。对于没有技术背景的人,也许比较难以理解这个所谓的玄而又玄的“云服务”到底是怎么个玩意儿?接下来我会...… Continue reading

尚未锦衣,何以还乡

Published on December 15, 2019

AI未来读后感

Published on August 09, 2019