荣耀畅玩5A的荣耀v9电池容量量多大,支持5V2A充电头吗

CocoaPods安装出现SSL verification error
CocoaPods安装出现SSL verification error
发布时间: 0:47:31
编辑:www.fx114.net
本篇文章主要介绍了"CocoaPods安装出现SSL verification error",主要涉及到CocoaPods安装出现SSL verification error方面的内容,对于CocoaPods安装出现SSL verification error感兴趣的同学可以参考一下。
CocoaPods安装出现SSL verification error
在安装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.首先要安装&&终端输入这条命令即可&/usr/bin/ruby
-e &$(curl -fsSL /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
证书错误问题
$ cd $rvm_path/usr/ssl
$ sudo curl -O http://curl.haxx.se/ca/cacert.pem
$ sudo mv cacert.pem cert.pem
这样就解决了上面的error
/pc/fwq/165342.html
一、不得利用本站危害国家安全、泄露国家秘密,不得侵犯国家社会集体的和公民的合法权益,不得利用本站制作、复制和传播不法有害信息!
二、互相尊重,对自己的言论和行为负责。
本文标题:
本页链接:你正在使用的浏览器版本过低,将不能正常浏览和使用知乎。日积月累(14)
在我们大天朝,使用网络都是被监控的,我们安装cocopods的时候之前都会从网上搜索很多解决办法,但是发现新的已经不再维护了。所以我们在安装的时候会一直遇到证书问题。同时我们公司的网络同样存在动态修改用户host的功能(这个好像有),所以被迫使用新的网络,然后将错误提示和新的请求办法贴出来。
执行sudo gem install cocoapods的时候提示错误
SSL verification error at depth 1: unable to get local issuer certificate (20)
You must add /C=IL/O=StartCom Ltd./OU=Secure Digital Certificate Signing/CN=StartCom Certification Authority to your local trusted store
SSL verification error at depth 2: self signed certificate in certificate chain (19)
Root certificate is not trusted (/C=US/O=GeoTrust Inc./CN=GeoTrust Global CA)
其实只要是使用gem的都会又ssl证书问题。
下面说下用的新路径
gem sources --remove https:
gem sources -a https:
gem sources -l
sudo gem install -n /usr/local/bin cocoapods
然后就会执行成功了,不过此刻会卡住,其实是在下载文件,你可以用下面的方法查看下载的文件大小。
cd ~/.cocoapods/
到此就可以说是解决了这个问题了。
&&相关文章推荐
参考知识库
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:66152次
积分:1486
积分:1486
排名:千里之外
原创:80篇
转载:11篇
评论:20条
(2)(2)(3)(2)(3)(1)(4)(7)(7)(6)(6)(5)(1)(4)(3)(2)(7)(6)(7)(6)(10)主题 : cocoa pods安装出现的问题
级别: 新手上路
可可豆: 20 CB
威望: 20 点
在线时间: 45(时)
发自: Web Page
来源于&&分类
cocoa pods安装出现的问题&&&
YongdeiMac:~ yongxia$ gem sources -l*** CURRENT SOURCES ***YongdeiMac:~ yongxia$ sudo gem install cocoapodsERROR:&&SSL verification error at depth 2: unable to get local issuer certificate (20)ERROR:&&You must add /C=US/O=VeriSign, Inc./OU=Class 3 Public Primary Certification Authority to your local trusted storeERROR:&&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 storeERROR:&&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)ERROR:&&Could not find a valid gem 'cocoapods' (&= 0), here is why:&&&&&&&&&&Unable to download data from
- bad response Service Temporarily Unavailable 503 ()求教各位大神,这个怎么解决啊,网上没有找到有效的解决方法。
级别: 骑士
UID: 157406
可可豆: 925 CB
威望: 728 点
在线时间: 793(时)
发自: Web Page
taobao的镜像已经不维护了,原因网上有些帖子已经说了,现在可以用
不积跬步,无以至千里
关注本帖(如果有新回复会站内信通知您)
苹果公司现任CEO是谁?2字 正确答案:库克
发帖、回帖都会得到可观的积分奖励。
按"Ctrl+Enter"直接提交
关注CocoaChina
关注微信 每日推荐
扫一扫 浏览移动版

我要回帖

更多关于 荣耀8电池容量 的文章

 

随机推荐