在官網上下載libressl的源碼用於編譯, 官網地址 http://www.libressl.org/
在官網的文档列表上, 找一個版本的庫目錄 https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/
找了一個看起來還不錯的下載地址 https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-3.9.2.tar.gz
小編用的debian系統, 好多東西沒安裝, 只有一個apt工具, 用apt把環境準備一下:
apt-get update apt-get install wget gcc make
都準備停當之後, 用wget把庫down下來:
cd ~ wget https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-3.9.2.tar.gz
接下來, 解壓, 編譯, 用到gcc和make
tar zxvf libressl-3.9.2.tar.gz cd libressl-3.9.2 ./configure --prefix=/usr/local/libressl make -j$(nproc) && make install
完事, 收工。