How can I install Jekyll on OSX 10.11?

前端 未结 9 1684
自闭症患者
自闭症患者 2020-12-05 03:27
ERROR:  While executing gem ... (Errno::EPERM)
Operation not permitted - /usr/bin/jekyll

I\'m getting a permission error on trying to install Jekyl

9条回答
  •  北荒
    北荒 (楼主)
    2020-12-05 03:50

    The new El Capitan version of OS X has a new technology called SIP that won't let users (even when using sudo) write to the /usr/bin folder. This breaks the install process. You can disable SIP, but I'd prefer to keep it on since it provides protection against bad stuff.

    SIP does allow writing in the /usr/local folder so what I did was manually install ruby there using brew and then install jekyll. That worked fine.

    sudo brew install ruby
    

提交回复
热议问题