mac os 10.12.2 安装cocoapods失败
Mac OS 10.12.2系统下,通过命令sudo gem install cocoapods
安装,失败,报错:
Fetching: cocoapods-try-1.1.0.gem (100%)
Successfully installed cocoapods-try-1.1.0
Fetching: cocoapods-trunk-1.1.2.gem (100%)
Successfully installed cocoapods-trunk-1.1.2
Fetching: cocoapods-stats-1.0.0.gem (100%)
Successfully installed cocoapods-stats-1.0.0
Fetching: cocoapods-search-1.0.0.gem (100%)
Successfully installed cocoapods-search-1.0.0
Fetching: cocoapods-plugins-1.0.0.gem (100%)
Successfully installed cocoapods-plugins-1.0.0
Fetching: cocoapods-downloader-1.1.3.gem (100%)
Successfully installed cocoapods-downloader-1.1.3
Fetching: cocoapods-deintegrate-1.0.1.gem (100%)
Successfully installed cocoapods-deintegrate-1.0.1
Fetching: cocoapods-core-1.1.1.gem (100%)
Successfully installed cocoapods-core-1.1.1
ERROR: While executing gem ... (Errno::EPERM)
Operation not permitted - /usr/bin/pod
执行命令gem sources -l
结果:
*** CURRENT SOURCES ***
https://gems.ruby-china.org/
卸载后重新安装一样报这个错误,实在没辙了,求各位大神指点迷津
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
貌似是权限问题,看下这篇文章http://www.jianshu.com/p/0572...
可能是
10.11
之后新加的特性,如何关闭rootless
mac_os_turn_off_the_rootless