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.稍微處理

