macos - Mac gem install cocoapods

 Tong-david 发布于 2022-10-25 07:20
$ sudo gem install cocoapods
Password:
Fetching: i18n-0.7.0.gem (100%)
Successfully installed i18n-0.7.0
Fetching: thread_safe-0.3.5.gem (100%)
Successfully installed thread_safe-0.3.5
Fetching: tzinfo-1.2.2.gem (100%)
Successfully installed tzinfo-1.2.2
Fetching: minitest-5.8.4.gem (100%)
Successfully installed minitest-5.8.4
Fetching: activesupport-4.2.5.1.gem (100%)
Successfully installed activesupport-4.2.5.1
Fetching: nap-1.1.0.gem (100%)
Successfully installed nap-1.1.0
Fetching: fuzzy_match-2.0.4.gem (100%)
ERROR:  While executing gem ... (Errno::EPERM)
    Operation not permitted - /usr/bin/fuzzy_match
    
    
# julaud at julauddeMBP.lan in ~/www/ios/swift/PinGo/PinGo on git:master x [15:59:35]
$ sudo gem install cocoapods
ERROR:  While executing gem ... (Errno::EPERM)
    Operation not permitted - /usr/bin/fuzzy_match
2 个回答
  • 操作系統是 OS X 10.11 Al Captain 吧。在這一代新引進了 rootless 的特性,鎖住了 /usr/bin/ 目錄。解決方法:不安裝在 /usr/bin/ 而是 /usr/local/bin/ 下:

    sudo gem install --bindir /usr/local/bin cocoapods

    來自 StackOverflow

    2022-10-26 14:25 回答
  • ERROR: While executing gem ... (Errno::EPERM)

    Operation not permitted - /usr/bin/fuzzy_match
    

    权限问题

    为啥不用 Homebrew 装 Ruby ?

    2022-10-26 14:26 回答
撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有