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

简介: 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

image.png


随便选择一个

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

相关文章
|
6月前
|
Java Spring
成功解决Initialization failed for ‘https://start.spring.io‘ Please check URL, network and proxy settings
这篇文章提供了解决Spring Initializr网站初始化失败问题的方法,包括检查URL、网络和代理设置。
成功解决Initialization failed for ‘https://start.spring.io‘ Please check URL, network and proxy settings
|
9月前
|
缓存 网络安全 开发工具
Git服务器报错:host key for (ip地址) has changed and you have requested strict checking
Git服务器报错:host key for (ip地址) has changed and you have requested strict checking
558 0
|
9月前
|
缓存 数据安全/隐私保护 Windows
ECDSA host key for ... has changed and you have requested strict checking.Host key verification fail
ECDSA host key for ... has changed and you have requested strict checking.Host key verification fail
|
9月前
|
Java Spring
Initialization failed for 'https://start.spring.io' Please check URL, network and proxy settings.
Initialization failed for 'https://start.spring.io' Please check URL, network and proxy settings.
1251 0
|
KVM 虚拟化
成功解决Problem while trying to mount target]\“. HTTP response code is 400
成功解决Problem while trying to mount target]\“. HTTP response code is 400
|
应用服务中间件
Error:Remote staging type or host is not specified.
Error:Remote staging type or host is not specified.
198 0
|
Java Spring
Initialization failed for ‘https://start.spring.io‘ Please check URL, network and proxy settings解决办法
Initialization failed for ‘https://start.spring.io‘ Please check URL, network and proxy settings解决办法
3740 1
Initialization failed for ‘https://start.spring.io‘ Please check URL, network and proxy settings解决办法
|
Linux
ERROR: 2 matches found based on name: network product-server_default is ambiguous
ERROR: 2 matches found based on name: network product-server_default is ambiguous
180 0
|
安全 网络安全 开发工具
【已解决】Unable to negotiate with 47.98.49.44 port 22: no matching host key type found. Their offer: ssh
Unable to negotiate with 47.98.49.44 port 22: no matching host key type found. Their offer: ssh
544 0
【已解决】Unable to negotiate with 47.98.49.44 port 22: no matching host key type found. Their offer: ssh
curl: (48) An unknown option was passed in to libcurl
curl: (48) An unknown option was passed in to libcurl
143 0