我已升级到OSX 10.11,我无法正常使用curl
尝试使用以下方式设置HomeBrew的全新安装:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
如HomeBrew网站(http://brew.sh)
所述我收到错误:
curl: (4) A requested feature, protocol or option was not found built-in in this libcurl due to a build-time decision.
curl的系统版本位于/ usr / bin
$ curl --version curl 7.43.0(x86_64-apple-darwin15.0)libcurl / 7.43.0 SecureTransport zlib / 1.2.5 协议:dict文件ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp 功能:AsynchDNS IPv6大文件GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz UnixSockets
这个错误意味着: CURLE_NOT_BUILT_IN(4)
由于构建时决定,未在此libcurl中找到所请求的功能,协议或选项。这意味着在构建libcurl时未启用或显式禁用某个功能或选项,并且为了使其正常运行,您必须获得重建的lib curl。
但如果我不知道重建哪个决定,我该如何解决呢......
我尝试下载,构建和安装最新的curl版本(curl-7.45.0.tar.gz)..标准配置/ make / install(安装了OSX 10.11 Xcode 7.0 CLI ...)但命令curl不不要使用这个二进制文件,它总是使用系统卷曲...
====我不明白如何安装lib curl ... 太乱了
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Develo per/SDKs/MacOSX10.11.sdk/usr/lib/libcurl.3.tbd
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libcurl.4.tbd
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libcurl.tbd
/usr/lib/libcurl.3.dylib
/usr/lib/libcurl.4.dylib
/usr/lib/libcurl.dylib
/usr/local/Library/ENV/pkgconfig/10.10/libcurl.pc
/usr/local/Library/ENV/pkgconfig/10.11/libcurl.pc
/usr/local/Library/ENV/pkgconfig/10.5/libcurl.pc
/usr/local/Library/ENV/pkgconfig/10.8/libcurl.pc
/usr/local/Library/ENV/pkgconfig/10.9/libcurl.pc
/usr/local/MacGPG2/lib/libcurl.4.dylib
/usr/local/MacGPG2/lib/libcurl.a
/usr/local/MacGPG2/lib/libcurl.dylib
===更新1
~ $ otool -L /usr/bin/curl/usr/bin/curl:
/usr/lib/libcurl.4.dylib (compatibility version 7.0.0, current version 8.0.0)
/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.5)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1225.1.1)
===更新2这里是当前的协议&配置选项 缺少哪一个正确运行卷曲...
curl version: 7.45.0
Host setup: x86_64-apple-darwin15.0.0
Install prefix: /usr/local
Compiler: gcc
SSL support: no (--with-{ssl,gnutls,nss,polarssl,cyassl,axtls,winssl,darwinssl} )
SSH support: no (--with-libssh2)
zlib support: enabled
GSS-API support: no (--with-gssapi)
TLS-SRP support: no (--enable-tls-srp)
resolver: default (--enable-ares / --enable-threaded-resolver)
IPv6 support: enabled
Unix sockets support: enabled
IDN support: no (--with-{libidn,winidn})
Build libcurl: Shared=no, Static=yes
Built-in manual: enabled
--libcurl option: enabled (--disable-libcurl-option)
Verbose errors: enabled (--disable-verbose)
SSPI support: no (--enable-sspi)
ca cert bundle: no
ca cert path: no
LDAP support: enabled (OpenLDAP)
LDAPS support: enabled
RTSP support: enabled
RTMP support: no (--with-librtmp)
metalink support: no (--with-libmetalink)
HTTP2 support: disabled (--with-nghttp2)
Protocols: DICT FILE FTP GOPHER HTTP IMAP LDAP LDAPS POP3 RTSP SMTP TELNET TFTP
答案 0 :(得分:0)
我使用curl
的-k选项重新安装了HomeBrewCFLAGS="-arch i386" ./configure --prefix=/usr/local/curl-7.45.0 --with-ssl=/usr/local/openssl-1.0.2d and ruby -e "$(curl -k raw.githubusercontent.com/Homebrew/install/master/install)";
然后轻松安装一个全新的curl准备好El Capitan(w OpenSSL作为广告依赖...)然后一直到rbenv,ruby和rails ......