macos - Mac gem install cocoapods
迷茫
迷茫 2017-04-24 09:12:52
[Ruby讨论组]
$ 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)
PHP中文网

ERROR: While executing gem ... (Errno::EPERM)

Operation not permitted - /usr/bin/fuzzy_match

权限问题

为啥不用 Homebrew 装 Ruby ?

PHP中文网

操作系統是 OS X 10.11 Al Captain 吧。在這一代新引進了 rootless 的特性,鎖住了 /usr/bin/ 目錄。解決方法:不安裝在 /usr/bin/ 而是 /usr/local/bin/ 下:

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

來自 StackOverflow

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习
PHP中文网抖音号
发现有趣的

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号