sudo gem install cocoapods
之后出现
ERROR: While executing gem ... (Errno::EPERM)
Operation not permitted - /usr/bin/pod
错误提示
按照网上各个版本的解答 提示输出如下
sudo gem install -n /usr/local/bin cocoapods
运行后结果如下
Successfully installed cocoapods-0.39.0
Parsing documentation for cocoapods-0.39.0
Installing ri documentation for cocoapods-0.39.0
1 gem installed
然而我执行 pod 命令时仍然提示
-bash: pod: command not found
如此
另外说明 gem -v 2.16.1
ruby -v 2.0.0
实在不知道该怎么处理了 特来求救望各位大神慷慨相助