Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

curl with Kerberos error: option --negotiate: the installed libcurl version doesn't support this

I would like to use curl with Kerberos

curl --negotiate '<SOME_ULR>'

or

curl --negotiate -u : '<SOME_ULR>'

But I got the error:

curl: option --negotiate: the installed libcurl version doesn't support this

My OS: OS X El Capitan

Curl version:

curl -V
curl 7.52.1 (x86_64-apple-darwin13.4.0) libcurl/7.52.1 OpenSSL/1.0.2l zlib/1.2.8
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP UnixSockets HTTPS-proxy

Any Ideas?

like image 636
Babu Avatar asked Nov 16 '25 06:11

Babu


1 Answers

I fixed the issue in MacOs by installing the latest curl from brew :

brew install curl

after that, I used the following command, so that my terminal picks up the curl by homebrew

echo 'export PATH="/opt/homebrew/opt/curl/bin:$PATH"' >> ~/.zshrc

source ~/.zshrc

u can verify, that correct curl is picked up by ur terminal now, by using the following command.

which curl

expected output : /opt/homebrew/opt/curl/bin/curl

Note : u might wanna use .bashrc, if u don't have .zshrc present in home directory of ur machine OR u can create .zshrc file .

like image 90
Utkarsh Sharma Avatar answered Nov 17 '25 21:11

Utkarsh Sharma



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!