Installing CocoaPods on OS X 10.11
These instructions were tested on all betas and the final release of El Capitan.
Custom GEM_HOME
This is the solution when you are receiving the "Operation not permitted" error.
$ mkdir -p $HOME/Software/ruby
$ export GEM_HOME=$HOME/Software/ruby
$ gem install cocoapods
[...]
1 gem installed
$ export PATH=$PATH:$HOME/Software/ruby/bin
$ pod --version
0.37.2
Standard system installation
For whatever reason, the rootless stuff seems less restrictive when one simply upgrades the system. I could sudo gem install cocoapods just fine on a machine upgraded from 10.10 - however, binstubs are no longer installed into /usr/bin:
$ sudo gem install cocoapods
[...]
1 gem installed
$ export PATH=$PATH:/Library/Ruby/bin
$ pod --version
0.37.2
We have heard from some users that they receive this error when doing a system-wide installation:
ERROR: While executing gem ... (Errno::EPERM)
Operation not permitted - /usr/bin/pod
We aren't sure why gem behaves differently on some systems, but this can be solved by passing -n /usr/local/bin to the install command, so that the pod executable gets installed there.
Note: I've locked the issue to collaborators so that these instructions don't get buried for now.
cocoapods因GEM_HOME升级遇到问题解决办法
原创
©著作权归作者所有:来自51CTO博客作者lisiben的原创作品,请联系作者获取转载授权,否则将追究法律责任
上一篇:从被淘汰技术的角度去进行平衡思考
下一篇:Linux防火墙配置
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
Apache 启动遇到问题解决
Apache 启动遇到问题解决
apache error httpd -
电脑问题解决办法
电脑问题解决办法
职场 电脑问题 休闲 -
Ceph 整合OpenStack kilo 遇到问题解决
Ceph 整合OpenStack kilo 遇到问题解决
ceph kilo mon openstack 整合 -
租用的gpu如何知道对应的cuda
关键词:GPU分析、容器化、Docker摘 要:介绍在Linux环境下搭建GPU分析容器化部署所需要的环境。目录一、配置环境要求二、Linux系统安装 1、分区 2、独立数据分区挂载三、服务配置及显卡驱动安装 1、
租用的gpu如何知道对应的cuda docker gpu算力 人工智能 linux