平台:Mac os
curl报错
curl: (4) A requested feature, protocol or option was not found built-in in this libcurl due to a build-time decision.
解决
重装curl
1、下载curl
https://curl.haxx.se/download.html
随便选择一个
2、安装
(1)进入解压后的目录,配置安装路径
./configure --prefix=/usr/local/curl --with-darwinssl
(2)执行make
(3)执行make install
(4)建立连接,这样就可以直接访问到
ln -s /usr/local/curl/bin/curl /usr/local/bin
(5)检查curl 是否已经是新装的curl路径
which curl
(6)使用
curl www.baidu.com