Ubuntu 安装 GMSSL
Ubuntu 安裝 GMSSL
- 1 GMSSL 下載和解壓
- 2 編譯選項
- error & solution
- 3 編譯并安裝
- 4 環境變量
- 5 驗證是否安裝成功
- reference
1 GMSSL 下載和解壓
GMSSL 下載地址:
https://github.com/guanzhi/GmSSL/archive/master.zip
解壓
unzip GmSSL-master.zip查看GmSSL-master 的文件內容
進入目錄
2 編譯選項
./config --prefix=/usr/local/gmssl --openssldir=/usr/local/gmssl no-shared --prefix = /usr/local/gmssl
? ? ? ? gmssl 的安裝路徑。
--openssldir = /usr/local/gmssl
? ? ? ? openssl 的 configure 文件路徑,與系統中 openssl 的路徑保持獨立,在路徑上避免與系統中 openssl 的沖突。
no-shared
? ? ? ? 只生成靜態庫,在運行上避免與系統中 openssl 的沖突。
error & solution
發生錯誤
This system (linux-x86_64) is not supported. See file INSTALL for details.
打開并修改 Configure 文件
打開并修改 /test/build.info 文件
重新輸入命令
成功執行!
3 編譯并安裝
編譯
make安裝
sudo make install4 環境變量
打開~/.bashrc文件
vim ~/.bashrc在文件末尾添加內容
重新執行修改后的~/.bashrc文件
5 驗證是否安裝成功
gmssl version -a openssl version -areference
【1】: 在Linux下安裝GmSSL.CSDN.百里楊
【2】: gmssl編譯linux,gmssl編譯安裝出錯解決.CSDN.小小奮斗nice
【3】: Linux 的.bashrc 文件詳解.CSDN.shadow_zed
總結
以上是生活随笔為你收集整理的Ubuntu 安装 GMSSL的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: hadoop join
- 下一篇: hive 的条件判断(if、coales