> 1 SSLRead() return error -9806
gem sources --remove https://rubygems.org/
//等有反应之后再敲入以下命令
$ gem sources -a https://ruby.taobao.org/
sudo gem install -n /usr/local/bin cocoapods
Git clone https://git.coding.net/CocoaPods/Specs.git ~/.cocoapods/repos/master
1.在装之前最好先卸载点老版本
$ sudo gem uninstall cocoapods
2.查看本地安装过的cocopods相关东西
$ gem list --local | grep cocoapods
然后逐步删除
3,安装 rvm 管理器
curl -L https://get.rvm.io | bash -s stable
然后,载入 RVM 环境:
source ~/.rvm/scripts/rvm
相关命令:rvm list,rvm remove, rvm install
rvm list known
4,设置Ruby版本
设置为系统默认版本
rvm 2.4.0 --default
5 安装pods
sudo gem install -n /usr/local/bin cocoapods
Pod Error
> 1 SSLRead() return error -9806
gem sources --remove https://rubygems.org/
//等有反应之后再敲入以下命令
$ gem sources -a https://ruby.taobao.org/
sudo gem install -n /usr/local/bin cocoapods
Git clone https://git.coding.net/CocoaPods/Specs.git ~/.cocoapods/repos/master
1.在装之前最好先卸载点老版本
$ sudo gem uninstall cocoapods
2.查看本地安装过的cocopods相关东西
$ gem list --local | grep cocoapods
然后逐步删除
3,安装 rvm 管理器
curl -L https://get.rvm.io | bash -s stable
然后,载入 RVM 环境:
source ~/.rvm/scripts/rvm
相关命令:rvm list,rvm remove, rvm install
4,设置Ruby版本
设置为系统默认版本
rvm 2.3.0 --default
5 安装pods
sudo gem install -n /usr/local/bin cocoapods