OpenSSL 安装, CMake 安装

https://www.tecmint.com/install-openssl-from-source-in-centos-ubuntu/
安装最新版本 OpenSSL


sudo yum install perl-core libtemplate-perl zlib-devel
wget -c https://www.openssl.org/source/openssl-1.0.2p.tar.gz
tar -xzvf openssl-1.0.2p.tar.gz
cd openssl-1.0.2p/

./config no-shared zlib-dynamic -fPIC

make
make test
sudo make install

编辑 ~/.bash_profile 文件
PATH添加openssl的路径 /usr/local/ssl/bin
在添加其他3个路径
OPENSSL_ROOT_DIR=/usr/local/ssl
OPENSSL_CRYPTO_LIBRARY=/usr/local/ssl/lib
OPENSSL_INCLUDE_DIR=/usr/local/ssl/include

export OPENSSL_ROOT_DIR
export OPENSSL_CRYPTO_LIBRARY
export OPENSSL_INCLUDE_DIR

 

安装好OpenSSL之后,再编译和安装cmake


https://cmake.org/install/
./bootstrap
make
make install

 

 

 

 

 

 

 

OpenSSL  安装

 https://www.tecmint.com/install-openssl-from-source-in-centos-ubuntu/

  

cmake 安装 

https://cmake.org/install/

 

CMake教程

https://www.hahack.com/codes/cmake/

posted @ 2020-05-12 20:32  He_LiangLiang  阅读(4334)  评论(0编辑  收藏  举报