1.下载cmake源码包
wget https://cmake.org/files/v3.18/cmake-3.18.1.tar.gz
2.
./configure --prefix=/usr/local/cmake
这一步说没有找到OPENSSL报错,
-- 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)
CMake Error at Utilities/cmcurl/CMakeLists.txt:485 (message):
Could not find OpenSSL. Install an OpenSSL development package or
configure CMake with -DCMAKE_USE_OPENSSL=OFF to build without OpenSSL.
3.
看到两篇文章:
b.https://blog.csdn.net/zhou_zhao_xu/article/details/105310579
三个系统上安装响应的libssl后在重新进行上面的第二步操作;
我是CentOS7,所以使用:yum -y install openssl-devel安装,openssl和openssl-devel的区别简单来说就是devel这个是开发需要的头文件等东西。
4.
make && make install
5.稍微处理