升级10.11后cocoa pods错误,重新安装遇到的问题
2016-12-16 09:53
507 查看
(1)https://ruby.taobao.org/
(2)Q:Operation not permitted - /usr/bin/xcodeproj
A:sudo gem update --system
(3)sudo gem install -V cocoa pods
-->
sudo gem install -n /usr/local/bin cocoapods --pre
/*------------------*/
localhost:~ apple$ gem sources --remove https://rubygems.org/
source https://rubygems.org/ not present in cache
localhost:~ apple$ gem sources -a http://ruby.taobao.org/
Error fetching http://ruby.taobao.org/:
bad response Not Found 404 (http://ruby.taobao.org/specs.4.8.gz)
localhost:~ apple$ gem sources -a http://ruby.taobao.org/
Error fetching http://ruby.taobao.org/:
bad response Not Found 404 (http://ruby.taobao.org/specs.4.8.gz)
localhost:~ apple$ gem sources -a https://ruby.taobao.org/
source https://ruby.taobao.org/ already present in the cache
localhost:~ apple$ gem sources -l
*** CURRENT SOURCES ***
https://ruby.taobao.org/
localhost:~ apple$ sudo gem install -V cocoapods
ERROR: While executing gem ... (Errno::EPERM)
Operation not permitted - /usr/bin/xcodeproj
localhost:~ apple$ sudo gem update --system
Updating rubygems-update
Fetching: rubygems-update-2.6.8.gem (100%)
ERROR: While executing gem ... (Errno::EPERM)
Operation not permitted - /usr/bin/update_rubygems
localhost:~ apple$ sudo gem install -n /usr/local/bin cocoapods --pre
...
11 gems installed
localhost:~ apple$ sudo gem install -V cocoa pods
...
1 gem installed
localhost:~ apple$ sudo gem install cocoapods
...
ERROR: While executing gem ... (Errno::EPERM)
Operation not permitted - /usr/bin/pod
localhost:~ apple$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
localhost:~ apple$ brew install ruby
localhost:~ apple$ sudo gem install -V cocoa pods
...
ERROR: While executing gem ... (TypeError)
no implicit conversion of nil into String
localhost:~ apple$ gem update --system
Updating rubygems-update
Fetching: rubygems-update-2.6.8.gem (100%)
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
localhost:~ apple$ sudo gem install cocoapods
ERROR: While executing gem ... (TypeError)
no implicit conversion of nil into String
localhost:~ apple$ sudo gem install -n /usr/local/bin cocoapods
ERROR: While executing gem ... (TypeError)
no implicit conversion of nil into String
localhost:~ apple$ ruby -v
ruby 2.3.3p222 (2016-11-21 revision 56859) [x86_64-darwin15]
localhost:~ apple$ rvm use 2.3.3 —-default
-bash: rvm: command not found
localhost:~ apple$ sudo gem update --system
...
RubyGems system software updated
localhost:~ apple$ sudo gem install -V cocoa pods
...
17 gems installed
localhost:~ apple$ sudo gem update -V
安装成功
(2)Q:Operation not permitted - /usr/bin/xcodeproj
A:sudo gem update --system
(3)sudo gem install -V cocoa pods
-->
sudo gem install -n /usr/local/bin cocoapods --pre
/*------------------*/
localhost:~ apple$ gem sources --remove https://rubygems.org/
source https://rubygems.org/ not present in cache
localhost:~ apple$ gem sources -a http://ruby.taobao.org/
Error fetching http://ruby.taobao.org/:
bad response Not Found 404 (http://ruby.taobao.org/specs.4.8.gz)
localhost:~ apple$ gem sources -a http://ruby.taobao.org/
Error fetching http://ruby.taobao.org/:
bad response Not Found 404 (http://ruby.taobao.org/specs.4.8.gz)
localhost:~ apple$ gem sources -a https://ruby.taobao.org/
source https://ruby.taobao.org/ already present in the cache
localhost:~ apple$ gem sources -l
*** CURRENT SOURCES ***
https://ruby.taobao.org/
localhost:~ apple$ sudo gem install -V cocoapods
ERROR: While executing gem ... (Errno::EPERM)
Operation not permitted - /usr/bin/xcodeproj
localhost:~ apple$ sudo gem update --system
Updating rubygems-update
Fetching: rubygems-update-2.6.8.gem (100%)
ERROR: While executing gem ... (Errno::EPERM)
Operation not permitted - /usr/bin/update_rubygems
localhost:~ apple$ sudo gem install -n /usr/local/bin cocoapods --pre
...
11 gems installed
localhost:~ apple$ sudo gem install -V cocoa pods
...
1 gem installed
localhost:~ apple$ sudo gem install cocoapods
...
ERROR: While executing gem ... (Errno::EPERM)
Operation not permitted - /usr/bin/pod
localhost:~ apple$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
localhost:~ apple$ brew install ruby
localhost:~ apple$ sudo gem install -V cocoa pods
...
ERROR: While executing gem ... (TypeError)
no implicit conversion of nil into String
localhost:~ apple$ gem update --system
Updating rubygems-update
Fetching: rubygems-update-2.6.8.gem (100%)
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
localhost:~ apple$ sudo gem install cocoapods
ERROR: While executing gem ... (TypeError)
no implicit conversion of nil into String
localhost:~ apple$ sudo gem install -n /usr/local/bin cocoapods
ERROR: While executing gem ... (TypeError)
no implicit conversion of nil into String
localhost:~ apple$ ruby -v
ruby 2.3.3p222 (2016-11-21 revision 56859) [x86_64-darwin15]
localhost:~ apple$ rvm use 2.3.3 —-default
-bash: rvm: command not found
localhost:~ apple$ sudo gem update --system
...
RubyGems system software updated
localhost:~ apple$ sudo gem install -V cocoa pods
...
17 gems installed
localhost:~ apple$ sudo gem update -V
安装成功
相关文章推荐
- 2016 cocoapods的安装和使用以及版本升级遇到的问题
- 升级OS X 10.11后CocoaPods的安装(问题与解决方法)
- 2016 cocoapods的安装和使用以及版本升级遇到的问题
- 2016 cocoapods的安装和使用以及版本升级遇到的问题
- 2016 cocoapods的安装和使用以及版本升级遇到的问题
- 2016 cocoapods的安装和使用以及版本升级遇到的问题
- 2016 cocoapods的安装和使用以及版本升级遇到的问题
- 2016 cocoapods的安装和使用以及版本升级遇到的问题
- 2016 cocoapods的安装和使用方法以及版本升级遇到的问题
- 2016 cocoapods的安装和使用以及版本升级遇到的问题 [转]
- 2016 cocoapods的安装和使用以及版本升级遇到的问题
- 详解2016 cocoapods的安装和使用以及版本升级遇到的问题
- 2016 cocoapods的安装和使用以及版本升级遇到的问题
- 升级到os10.11后,安装cocoapods, 出现 Operation not permitted - /usr/bin/xcodeproj
- 2016 Mac OS 10.11 CocoaPods的安装问题
- 轻松几步搞定CocoaPods修复10.11不能安装问题
- cocoapods的安装和使用,遇到的错误
- 关于Cocoapods的安装遇到的问题
- CocoaPods 升级遇到问题
- 升级mac 系统 10.11之后cocoapods出现问题