libgnutls的安装
2020-12-19 18:07 宋海宾 阅读(3265) 评论(0) 编辑 收藏 举报# 1. 安装 libgnutls
libgnutls
gnutls-3.6.15.tar.xz
解压方式:
命令: xz -d -k gnutls-3.6.15.tar.xz # -k 保留源文件
命令: tar -xvf gnutls-3.6.15.tar.xz
也可以直接解压
命令: tar -xvJf gnutls-3.6.15.tar.xz
https://www.gnutls.org/download.html
wget ftp://ftp.gnutls.org/gcrypt/gnutls/v3.5/gnutls-3.5.9.tar.xz
xz -d gnutls-3.5.9.tar.xz
tar xvf gnutls-3.5.9.tar
cd gnutls-3.5.9
PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig ./configure --with-included-libtasn1 --with-included-unistring --without-p11-kit
make
make install
# 2. lzip安装
libgnutls依赖gmp,gmp需要lzip解压
wget http://download.savannah.gnu.org/releases/lzip/lzip-1.20.tar.gz
tar zxvf lzip-1.20.tar.gz
cd lzip-1.20
./configure
make
make install
# 3. gmp安装
libjnutls依赖
wget https://gmplib.org/download/gmp/gmp-6.2.0.tar.gz
lzip -d gmp-6.1.2.tar.lz
tar xvf gmp-6.1.2.tar
cd gmp-6.1.2
./configure
make
make install
# 4. nettle安装
libnettle依赖
wget https://ftp.gnu.org/gnu/nettle/nettle-3.4.tar.gz
nettle-3.6.tar.gz
tar zxvf nettle-3.4.tar.gz
cd nettle-3.4
./configure
make
make check #测试一下
make install