如何在OSX 10.11上安装Jekyll? [英] How can I install Jekyll on OSX 10.11?

查看:83
本文介绍了如何在OSX 10.11上安装Jekyll?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

ERROR:  While executing gem ... (Errno::EPERM)
Operation not permitted - /usr/bin/jekyll

我在尝试安装Jekyll时遇到权限错误.我当前正在运行OSX 10.11(El Capitan).我也有Xcode 7,并且已经安装了开发人员工具.是否有解决方法,或者这是特定于操作系统的问题?

I'm getting a permission error on trying to install Jekyll. I'm currently running OSX 10.11 (El Capitan). I also have Xcode 7 and have installed the developer tools. Is there a workaround or is this an OS specific issue?

推荐答案

这是Apple在OS X El Capitan中新的无根(又名系统完整性保护或SIP)功能的副作用,但不影响/usr/local/bin .

This is a side effect of Apple's new rootless (aka System Integrity Protection or SIP) feature in OS X El Capitan, but it does not affect /usr/local/bin.

您可以尝试以下操作:

sudo gem install -n /usr/local/bin/ jekyll

这告诉gem将Jekyll安装到不受SIP保护的文件夹中,而不是/Library/Ruby/Gems下的默认受保护位置.

This tells gem to install Jekyll into a folder that isn't protected by SIP, rather than the default protected location under /Library/Ruby/Gems.

这是Jekyll开发人员建议的解决方案.

This is the solution suggested by Jekyll's developers.

这篇关于如何在OSX 10.11上安装Jekyll?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆