更新到OS X El Capitan(10.11)后,指南针不起作用[重复]

After installing OS X El Capitan (10.11) my ruby compass is no longer working. After trying to install compass I recieve error message like this:

$ sudo gem install compass
  ERROR:  While executing gem ... (Errno::EPERM)
      Operation not permitted - /usr/bin/compass

How this can be fixed?

凯阳光2020/03/23 14:33:16

升级到OS X El Capitan(10.11)后,我遇到了相同的问题,但是尝试升级sudo gem install sass张贴者将路径放入install命令的解决方案对我来说很有效,而安装指南针也可以安装sass,因此:sudo gem install -n /usr/local/bin compass做到了。谢谢狮子座!

GOGil老丝2020/03/23 14:33:16

我发现的解决方法只是将PATH放入任何ruby gem软件包的install命令中:

$  sudo gem install -n /usr/local/bin GEM_PACKAGE_NAME

所以用指南针对我来说是这样的:

$ sudo gem install -n /usr/local/bin compass

祝好运!