1.下载安装包
https://www.openssl.org/source/old/
openssl-3.1.0-alpha1.tar.gz
2.创建/usr/local/opensslpackage路径,并把压缩文件放到路径下
3.进入opensslpackage路径下,并解压
cd /usr/local/opensslpackage
tar -xzf openssl-3.1.0-alpha1.tar.gz
4.进入openssl-3.1.0-alpha1路径下,并安装openssl到 /usr/local/openssl 目录
cd /usr/local/opensslpackage/openssl-3.1.0-alpha1 ./config shared zlib --prefix=/usr/local/openssl && make && make install
报错1:
解决:
https://blog.csdn.net/sd4493091/article/details/122220902
报错2:
解决:
https://blog.csdn.net/u012724150/article/details/54836441
https://blog.csdn.net/xujiamin0022016/article/details/87817124
5.执行以下命令
./config -t make depend
6.进入/usr/local目录下,执行以下命令,给openssl创建快捷方式
ln -s openssl ssl
7.在/etc/ld.so.conf文件的最后面,添加如下内容:
/usr/local/openssl/lib
执行
ldconfig
8.添加OPESSL的环境变量,在/etc/profile的最后一行,添加
export OPENSSL=/usr/local/openssl/bin export PATH=$OPENSSL:PATH:$HOME/bin
执行重新加载环境变量
source /etc/profile
9.检查OPENSSL是否安装成功
openssl version -a
文章参考:
https://blog.csdn.net/qq_41672211/article/details/128119495
https://www.cnblogs.com/cx-code/p/10419580.html
标签:安装,3.1,openssl,blog,usr,https,linux,local From: https://www.cnblogs.com/wellwellwell/p/17119034.html