麻烦安装CocoaPods

时间:2013-01-18 01:59:08

标签: ruby cocoapods

每当我尝试使用gem安装cocoapods时,我都会收到错误

Basil-MBP:Magic8Ball Basil$ gem install cocoapods
Fetching: cocoapods-0.16.1.gem (100%)
Successfully installed cocoapods-0.16.1
1 gem installed
Installing ri documentation for cocoapods-0.16.1...
Installing RDoc documentation for cocoapods-0.16.1...
ERROR:  While generating documentation for cocoapods-0.16.1
... MESSAGE:   "\xE2" from ASCII-8BIT to UTF-8
... RDOC args: --op /Users/Basil/.rvm/gems/ruby-1.9.3-p327@rails329/doc/cocoapods-0.16.1/rdoc lib --title cocoapods-0.16.1 Documentation --quiet

如果我sudo gem安装cocoapods但是“pods setup”无法正常工作

2 个答案:

答案 0 :(得分:3)

您可以在没有gem install cocoapods --no-rdoc --no-ri

的文档的情况下安装gem

答案 1 :(得分:0)

尝试更新您的宝石

sudo update gems

,然后

sudo gem install cocoapods