What's the equivalent of Ubuntu's apt-get command on a Mac
There is no exact parallel on mac to apt
(switch to Linux for that), but some of the more common package names can most likely be installed from MacPorts. So, after installing MacPorts, run:
sudo port install libcurl3-dev
Homebrew is a popular alternative to the above-suggested MacPorts. I haven't used MacPorts but my impression from all the forum posts about the two is that Homebrew is easier to use.