天天看点

curl: (4) A requested feature, protocol or option was not found

平台: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
curl: (4) A requested feature, protocol or option was not found

随便选择一个

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      

参考

  1. brew install curl: (4) 错误解决办法
  1. Mac ln命令报错:Operation not permitted

继续阅读