mac系统:wget下载 HTTPS文件错误
测试下列命令:
wget datalad/example-dicom-structural/raw/master/dicoms/N2D_0001.dcm
显示下列错误:
OpenSSL: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure?
Unable to establish SSL connection.
起因是:
As written on the project page of wget, the secure protocols?TLSv1_1?and?TLSv1_2?were added in wget version 1.16.1. Your wget 1.15 does not support it.
wget1.15版本不支持HTTPS
于是更新wget:
brew install wget
显示成功安装版本1.19.5
检查wget的版本:
wget –version
wget –versionGNU Wget 1.15 built on linux-gnu.+digest +https +ipv6 +iri +large-file +nls +ntlm +opie +ssl/openssl
怎样还是1.15版本?怎样回事呢?
which wget
/usr/local/bin/wget
查找wget
find /usr/ -name “wget”?
/usr//local/bin/wget
/usr//local/Cellar/wget
/usr//local/Cellar/wget/1.19.5/bin/wget
这是什么鬼?存在多个版本!原来brew安装的文件不在/user/local/bin的目录下
删除系统默认版本:
sudo rm -f /usr/local/bin/wget
处理:
sudo cp /usr/local/Cellar/wget/1.19.5/bin/wget /usr/local/bin/
再来测试:
wget datalad/example-dicom-structural/raw/master/dicoms/N2D_0001.dcm
1. 本站所有资源来源于用户上传和网络,如有侵权请邮件联系站长!
2. 分享目的仅供大家学习和交流,您必须在下载后24小时内删除!
3. 不得使用于非法商业用途,不得违反国家法律。否则后果自负!
4. 本站提供的源码、模板、插件等等其他资源,都不包含技术服务请大家谅解!
5. 如有链接无法下载、失效或广告,请联系管理员处理!
6. 本站资源售价只是摆设,本站源码仅提供给会员学习使用!
7. 如遇到加密压缩包,请使用360解压,如遇到无法解压的请联系管理员
开心源码网 » mac系统:wget下载 HTTPS文件错误