brew install/update过程中download failed的问题及解决方法
2016-01-21 10:29
519 查看
今天因为要在mac上安装caffe,需要先安装opencv,于是使用命令brew install opencv进行安装。结果出现以下错误:
curl: (7) Failed to connect to gist.github.com port 443: Operation timed out
Error: Failed to download resource "mpfr--patch"
Download failed: https://gist.github.com/anonymous/3a7d24cf2c68f21eb940/raw/471e928fcdbfb5c2fa7428cfb496496e6ee469aa/mpfr-3.1.3.diff 通过其他途径(手动下载该文件放到brew的cache目录下)解决该问题后,在后面的过程中又不断出现类似问题,都是下载https开头的url文件出错。于是google之,在https://github.com/Homebrew/homebrew/issues/43154上找到了解决方案。原来是系统的SSL环境设置有问题,采用其中thomasdziedzic所说的方法设置环境变量即可。具体地,可以在~/.bash_profile末尾添加以下两行:
curl: (7) Failed to connect to gist.github.com port 443: Operation timed out
Error: Failed to download resource "mpfr--patch"
Download failed: https://gist.github.com/anonymous/3a7d24cf2c68f21eb940/raw/471e928fcdbfb5c2fa7428cfb496496e6ee469aa/mpfr-3.1.3.diff 通过其他途径(手动下载该文件放到brew的cache目录下)解决该问题后,在后面的过程中又不断出现类似问题,都是下载https开头的url文件出错。于是google之,在https://github.com/Homebrew/homebrew/issues/43154上找到了解决方案。原来是系统的SSL环境设置有问题,采用其中thomasdziedzic所说的方法设置环境变量即可。具体地,可以在~/.bash_profile末尾添加以下两行:
export SSL_CERT_DIR="/usr/local/etc/openssl/certs" export SSL_CERT_FILE="/usr/local/etc/openssl/cert.pem"
然后执行source ~/.bash_profile使之生效,再执行brew install opencv就能顺利安装了。
相关文章推荐
- WAI-ARIA无障碍网页应用属性完全展示
- AirPrint:无交互的后台打印实现
- QWidget、QMainWindow、QDialog和QFrame的区别
- main之前
- 从开机加电到执行main函数之前的过程(二)
- ai论文调研——PAMI Popular Articles (December 2015)
- does not contain bitcode.
- Flume之Failover和Load balancing原理
- ai论文调研-ai领域期刊&会议
- Main Note - Oracle GoldenGate - Supplemental Logging
- 装ghost遇到的问题之一“Windows failed to start. A Recent hardware or software change might be the cause.”
- 贪心--Sorting Railway Cars
- 贪心 Saitama Destroys Hotel
- 软RAID的实现
- tools:context=".MainActivity的作用
- cookie的path和domain參数实例解析
- Xenomai 安装准备工作
- hdu2888Check Corners【二维RMQ】2009 Multi-University Training Contest 9 - Host by HIT
- hdu 5319 Painter(模拟)(思维)(模拟)
- Main函数参数argc,argv说明