Ubuntu openssl安装编译
编译cmake时报错缺少openssl依赖
[missing: OPENSSL_CRYPTO_LIBRARY]
CMake Error at /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY
OPENSSL_INCLUDE_DIR) (Required is at least version "1.1.0")
Ubuntu openssl安装
全局安装:
apt-get install libssl-dev
编译
cd /usr/src
wget https://www.openssl.org/source/openssl-1.1.1n.tar.gz --no-check-certificate
# 根据需要下载不同的版本
tar zxvf openssl-1.1.1n.tar.gz
cd openssl-1.1.1n/
./config shared --prefix=/usr/local/
make -j 4make install
cp libcrypto.so.1.1 /usr/lib/x86_64-linux-gnu/
cp libssl.so.1.1 /usr/lib/x86_64-linux-gnu/
rm /usr/bin/openssl
ln -s /usr/local/bin/openssl /usr/bin/openssl
openssl version
标签:1.1,tar,OPENSSL,openssl,编译,usr,安装
From: https://www.cnblogs.com/cleansky/p/17624506.html