龙芯电脑编译安装openssl

环境如下:

操作系统:loongnix 1.0

CPU:3A3000

架构:mips64el

1、默认loongnix已经安装openssl 1.0版本,需要先卸载,命令如下:

rpm -e --nodeps  openssl

2、下载安装包

cd /opt/
wget https://www.openssl.org/source/old/1.1.1/openssl-1.1.1f.tar.gz
tar xf openssl-1.1.1f.tar.gz
cd openssl-1.1.1f/

3、配置编译

cd /opt
mkdir openssl
./Configure linux64-mips64 no-asm --prefix=/opt/openssl/openssl-1.1.1f  --openssldir=/opt/openssl/openssl-1.1.1f/ssl
make
make install

4、建立软链接

ln -s /opt/openssl/openssl-1.1.1f/bin/openssl /usr/bin/openssl
ln -s /opt/openssl/openssl-1.1.1f/include/openssl /usr/include/openssl
ln -s /opt/openssl/openssl-1.1.1f/lib/libssl.so.1.1 /usr/lib64/libssl.so.1.1
ln -s /opt/openssl/openssl-1.1.1f/lib/libcrypto.so.1.1 /usr/lib64/libcrypto.so.1.1

5、验证

[root@localhost opt]# openssl version -a
OpenSSL 1.1.1f  31 Mar 2020
built on: Wed May 19 03:07:23 2021 UTC
platform: linux64-mips64
options:  bn(64,64) rc4(char) des(int) idea(int) blowfish(ptr) 
compiler: gcc -fPIC -pthread -mabi=64 -Wall -O3 -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DNDEBUG
OPENSSLDIR: "/opt/openssl/openssl-1.1.1f/ssl"
ENGINESDIR: "/opt/openssl/openssl-1.1.1f/lib/engines-1.1"
Seeding source: os-specific

 

posted @ 2021-05-19 11:42  silent  阅读(786)  评论(0编辑  收藏  举报