Could you help me install curl.h library?
1 Answer
apt-get install libcurl4-gnutls-dev
or
apt-get install libcurl4-openssl-dev
or
apt-get install libcurl4-nss-dev
depending on whether you want to use gnutls, openssl or nss for SSL.
-
34Only improvement to this answer would be to explain why you would choose one over the other. Mar 31, 2014 at 18:49
-
1@DobesVandermeer, please could you explain that? I don't know the actual benefits of using one lib or the other.– ClaudixJan 15, 2016 at 8:45
-
8The reason for this divide is a licensing issue. The OpenSSL variant is the most tried and tested, but is not GPL compatible. Aug 3, 2017 at 7:57
-
-
1@ZachSmith, yes, it is. And is expected to remain so for many more years, except perhaps the number 4 in the package name might be replaced with higher one. Aug 11, 2017 at 8:17
sudo aptitude install libcurl-dev
is the command to install libcurl on Ubuntu. Unless you have particular reasons, I suggest using the package provided by your distribution, not to install by hand.libcurl-dev
. It haslibcurl4-openssl-dev
andlibcurl4-gnutls-dev
and I don't think Ubuntu would differ.libcurl-dev
is a virtual package on Debian. I have it on Debian/Sid.