OS X 10.11 操作系统 安装Cocoapods 报错 ERROR: While executing gem ... (Errno::EPERM) Operation not permitted - /usr/bin/fuzzy


问题描述:

使用 OS X 10.11系统第一次安装 Cocoapods 执行”sudo gem install cocoa pods” 时报出以下错误  “ERROR: While executing gem ... (Errno::EPERM) Operation not permitted - /usr/bin/fuzzy”

给出解决操作步骤:

1>.查看当前ruby的源

gem sources -l

2>.移除当前gem sources”

gem sources —removehttps://rubygems.org/

3>.添加gem sources (这里注意是 https)

gem sources -a https://ruby.taobao.org/

4>.检查添加gem sources是否成功,正确后提示为下图

gem sources -l

5>.如果gem太老,可以尝试用如下命令升级gem

sudo gem update --system

升级成功后会提示: RubyGems system software updated

6>.下载cocoapods (关键步骤)

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

7>.安装

pod setup

Terminal会停留在 Setting up CocoaPods master repo 这个状态一段时间,切莫着急!

你可能感兴趣的:(OS X 10.11 操作系统 安装Cocoapods 报错 ERROR: While executing gem ... (Errno::EPERM) Operation not permitted - /usr/bin/fuzzy)