Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to update cURL on OSX El Capitan?

I'm new using Mac and I'd like to upgrade the available cURL-7.43.0 to the last version cURL-7.47.1? I'm looking at some pages, but they say to avoid upgrading the originals on OSX. Any help please? Thanks

like image 525
Frank Avatar asked Mar 18 '16 10:03

Frank


People also ask

Can Mac El Capitan be updated?

macOS El Capitan no longer supported by Apple In keeping with Apple's release cycle, macOS 10.11 El Capitan is no longer receiving security updates as of August 2018. El Capitan was replaced by Sierra 10.12, High Sierra 10.13 and the current release, macOS 10.14 Mojave.

What is curl OSX?

The curl utility is a command line tool available on Unix, Linux, Mac OS X, Windows, and many other platforms. curl provides easy access to the HTTP protocol (among others) directly from the command line and is therefore an ideal way of interacting with CouchDB over the HTTP REST API.


2 Answers

Take a look at installing homebrew, it's a package manager that allow you to install and update binaries without overwriting your original ones.

You need then to prepend your PATH with homebrew's (/usr/local/bin by default). If you don't when you run curl the system will fetch the default OSX one (/usr/bin/curl) which isn't updated.

Use which curl when you're done to check !

like image 110
MrKiwi Avatar answered Nov 11 '22 16:11

MrKiwi


I had this issue as well with OSx locating curl at /usr/bin. If you install curl with brew install curl and then do brew info curl it will tell you the following near the bottom of the post-op output:

If you need to have this software first in your PATH run:

echo 'export PATH="/usr/local/opt/curl/bin:$PATH"' >> ~/.bash_profile

After running that command to update ~/.bash_profile you need to source it by executing . ~/.bash_profile

like image 41
Smitty Avatar answered Nov 11 '22 16:11

Smitty