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

相关文章
|
3月前
|
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
|
5月前
svn: E175002: Commit failed (details follow): svn: E175002: Unexpected HTTP status 502Bad Gateway on
svn: E175002: Commit failed (details follow): svn: E175002: Unexpected HTTP status 502Bad Gateway on
153 1
|
6月前
|
缓存 网络安全 开发工具
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
533 0
|
6月前
|
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.
1012 0
|
应用服务中间件
Error:Remote staging type or host is not specified.
Error:Remote staging type or host is not specified.
155 0
|
Docker 容器
docker报错ERROR: for hass “host” network_mode is incompatible with port_bindings
docker报错ERROR: for hass “host” network_mode is incompatible with port_bindings
2727 0
Uncaught DOMException: Blocked a frame with origin "http://localhost:8000" from accessing a cross-origin frame.
Uncaught DOMException: Blocked a frame with origin "http://localhost:8000" from accessing a cross-origin frame.
1148 0
|
Web App开发 安全 前端开发
Mixed Content: The page at was loaded over HTTPS, but requested an insecure imag
Mixed Content: The page at was loaded over HTTPS, but requested an insecure imag
464 0
Mixed Content: The page at was loaded over HTTPS, but requested an insecure imag
|
Web App开发 JavaScript 安全
Please open the about:config page and disable the "security.fileuri.strict_origin_policy" option
Please open the about:config page and disable the "security.fileuri.strict_origin_policy" option
218 0
Please open the about:config page and disable the "security.fileuri.strict_origin_policy" option
curl: (48) An unknown option was passed in to libcurl
curl: (48) An unknown option was passed in to libcurl
126 0