安装CocoaPods错误需要Ruby2.2版本以上
2017-04-27 16:48
615 查看
安装Cocoapods时出现以下错误 sudo gem install cocoapods
ERROR: SSL verification error at depth 1: unable to get local issuer certificate (20)
ERROR: You must add /C=IL/O=StartCom Ltd./OU=Secure Digital Certificate Signing/CN=StartCom Certification Authority to your local trusted store
ERROR: SSL verification error at depth 2: self signed certificate in certificate chain (19)
ERROR: Root certificate is not trusted (/C=US/O=GeoTrust Inc./CN=GeoTrust Global CA)
出现这个问题的原因主要是Ruby环境需要2.2版本以上,所以要更新Ruby环境。
更新Ruby环境
0.首先要安装Homebrew终端输入这条命令即可/usr/bin/ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”
1.安装rvm$ curl -L get.rvm.io | bash -s stable
2.装载rvm$ source ~/.rvm/scripts/rvm
3.安装2.3.0版本ruby$ rvm install 2.3.0
4.将2.3.0设为默认$ rvm use 2.3.0 –default
测试是否安装正常
ERROR: SSL verification error at depth 1: unable to get local issuer certificate (20)
ERROR: You must add /C=IL/O=StartCom Ltd./OU=Secure Digital Certificate Signing/CN=StartCom Certification Authority to your local trusted store
ERROR: SSL verification error at depth 2: self signed certificate in certificate chain (19)
ERROR: Root certificate is not trusted (/C=US/O=GeoTrust Inc./CN=GeoTrust Global CA)
出现这个问题的原因主要是Ruby环境需要2.2版本以上,所以要更新Ruby环境。
更新Ruby环境
0.首先要安装Homebrew终端输入这条命令即可/usr/bin/ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”
1.安装rvm$ curl -L get.rvm.io | bash -s stable
2.装载rvm$ source ~/.rvm/scripts/rvm
3.安装2.3.0版本ruby$ rvm install 2.3.0
4.将2.3.0设为默认$ rvm use 2.3.0 –default
$ source ~/.bashrc $ source ~/.bash_profile
测试是否安装正常
$ rvm -v
相关文章推荐
- cocos2d-x2.2以上版本 win/mac 安装步骤
- cocos2d-x2.2以上版本 mac 安装步骤
- Android 开发环境搭建---Android 编译需要的sun-java5-jdk在ubuntu10.04以上版本的安装问题
- 需要安装Directx9.0c以上版本和最新显卡驱动
- cocos2d-x2.2以上版本 win/mac 安装步骤
- centos7/rhel7安装较高版本ruby2.2/2.3/2.4+
- 解决默认安装AndroidX86 2.2以上版本不能上网
- cocos2d-x2.2以上版本 安装步骤
- 【教程】cocos2d-x2.2以上版本 win/mac 安装步骤
- macOS Ruby版本需要升级到2.2.2以上
- CentOS6安装python2.7(主要是因为想用 pip 的话需要2.7版本以上) + miniconda
- 2016/07/31 安装cocoapods 失败 原因:ruby 环境版本必须大雨2.2 --> 更新到2.3后重新安装
- 未找到oracle 客户端和网络组件,需要安装客户端8.1.7及以上版本
- cocos2d-x2.2以上版本 win/mac 安装步骤
- 【教程】cocos2d-x2.2以上版本 win/mac 安装步骤
- 解决redis在centos自带ruby版本太低问题centos 6.5 ruby环境安装2.2+
- 运行项目提示oracle 需要安装 8.17 版本以上
- 解决VMware6.5 以上版本安装RHEL 5的自动安装的问题
- 解决VMware6.5 以上版本安装RHEL 5的自动安装的问题
- 解决VMware6.5 以上版本安装RHEL 5的自动安装的问题