标签:processor crypto bin bcrypt not found 方便 number usr class
安装环境:
操作系统:CentOS 7
OpenSSL Version:openssl-1.0.2f.tar.gz
OpenSSL地址为http://www.openssl.org/source/openssl-1.0.2f.tar.gz
1、安装 Openssl:
[root@localhost openssl-1.0.2f]# wget http://www.openssl.org/source/openssl-1.0.2f.tar.gz
[root@localhost openssl-1.0.2f]# tar -xzf openssl-1.0.2f.tar.gz
[root@localhost openssl-1.0.2f]# cd openssl-1.0.2f
[root@localhost openssl-1.0.2f]# mkdir /usr/local/openssl
[root@localhost openssl-1.0.2f]# ./config --prefix=/usr/local/openssl
[root@localhost openssl-1.0.2f]# make
[root@localhost openssl-1.0.2f]# make install
2、查看路径
# which openssl
/usr/local/openssl/bin/openssl
为了使用方便,以及以后版本更新方便,可以创建软连接,如下:
# ln -s /usr/local/openssl/bin/openssl /usr/bin/openssl
3、执行以下命令
[root@localhost openssl-1.0.2f]# cd /usr/local/openssl
[root@localhost openssl]# ldd /usr/local/openssl/bin/openssl
linux-vdso.so.1 => (0x00007ffc63975000)
libssl.so.1.1 => not found
libcrypto.so.1.1 => not found
libdl.so.2 => /lib64/libdl.so.2 (0x00007f8d9da0f000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f8d9d7f3000)
libc.so.6 => /lib64/libc.so.6 (0x00007f8d9d431000)
/lib64/ld-linux-x86-64.so.2 (0x00007f8d9dc28000)
安装OK
7、查看版本
# openssl version
找不到动态库libssl.so.1.1,小问题,执行如下命令:
# vim /etc/ld.so.conf
在最后追加一行:
/usr/local/openssl/lib
然后执行:
# ldconfig /etc/ld.so.conf
# openssl version
OpenSSL 1.1.0f 25 May 2017
done.
标签:processor crypto bin bcrypt not found 方便 number usr class
原文地址:https://www.cnblogs.com/gaochaoweino/p/10124372.html