错误:执行gem时(Errno :: EPERM)不允许操作 [英] ERROR: While executing gem ... (Errno::EPERM) Operation not permitted
问题描述
我刚更新了我的Mac到OSX 10.11 El Capitan,并且一些宝石没有保留。
当我试图运行不同gem的安装时出现问题。 。例如:
> sudo gem install compass
执行后,我收到错误消息:
>错误:执行gem时(Errno :: EPERM)不允许操作
宝石,以及...
我已经运行Homebrew并尝试再次安装Ruby,但没有任何工作。
我在SASS问题上找到答案.. https://github.com/sass/sass/issues/1768
显然在OSX el Capitan中,有一项新的安全功能可以阻止您修改称为Rootless的系统文件。所以你有两个选择:
如果你在 / usr / local / bin
上安装gems,没有问题,因为rootless不影响这个路径。
$ b
sudo gem install -n / usr / local / bin GEM_NAME_HERE
I just updated my Mac to OSX 10.11 El Capitan and some gems didn't remain.
The problem arose when I tried to run installations of different gems... e.g.:
> sudo gem install compass
Once I execute, I get the error:
> ERROR: While executing gem ... (Errno::EPERM) Operation not permitted
This happens with other gems, as well...
I've run Homebrew and tried to install Ruby again, but nothing is working.
I found the answer on SASS issues.. https://github.com/sass/sass/issues/1768
Apparently with OSX el Capitan, there is a new security function that prevents you from modifying system files called Rootless. So you'll have 2 options:
If you install gems on /usr/local/bin
there will be no problem because rootless doesn't affect this path.
sudo gem install -n /usr/local/bin GEM_NAME_HERE
这篇关于错误:执行gem时(Errno :: EPERM)不允许操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!