In Linux, gnutls is a common application. It is also used to compile ffmpeg recently. However, it should be because the built-in gnutls is too old. Therefore, a new compilation is required for compilation errors. The following describes how to compile and install CentOS.
Note: lib64 must be added to/etc/ld. so. conf. And do not use yum remove gnutls-devel. Do not believe it? You will regret it!
First install nettle:
Wget http://www.lysator.liu.se /~ Nisse/archive/nettle-2.5.tar.gz
Tar zxf nettle-2.5.tar.gz
Cd nettle-2.5
./Configure-enable-shared
Make
Make install
Then install the new version of gnutls:
Wget ftp://ftp.gnutls.org/gcrypt/gnutls/v3.1/gnutls-3.1.9.1.tar.xz
Xz-d gnutls-3.1.9.1.tar.xz
Tar xf gnutls-3.1.9.1.tar
Cd gnutls-3.1.9.1
PKG_CONFIG_PATH =/usr/local/lib64/pkgconfig:/usr/lib64/pkgconfig:/usr/local/lib/pkgconfig:/usr/lib/pkgconfig./configure-enable-shared
Make
Make install
That's it.
GnuTLS details: click here
GnuTLS: click here
Install GnuTLS in Mac OS X 10.6