Operation not permitted

来源:互联网 发布:winzip软件下载 编辑:程序博客网 时间:2024/05/18 00:19

欢迎访问我的个人博客网站:http://www.yanmin99.com/

一、Operation not permitted - /usr/bin/rougify

  • 在运行sudo gem install cocoapods或者运行sudo gem install fastlane的是出现一下错误

    ERROR:  While executing gem ... (Errno::EPERM)Operation not permitted - /usr/bin/rougify
  • 分析原因应该是gem的版本比较低,所有就打算升级gem,所以就执行sudo gem update --system,但是还是错误一下错误

    ERROR:  While executing gem ... (Errno::EPERM)Operation not permitted - /usr/bin/rougify
  • 所以就只能换一种方式更新版本

    • 方案一,通过brew重新安装gem,参考stackoverflow

      brew install rubysudo gem update --system
    • 方案二,源码安装

      • 参考的另外博客gem手动安装