ubuntu18.04下, 下载cmake-3.18.2.tar.gz,
tar xvf cmake-3.18.2.tar.gz
cd cmake-3.18.2
./bootstrap
sudo make
sudo make install
执行./bootstrap后报错:
– 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.– Configuring incomplete, errors occurred! See also “/home/fxzc/files/cmake-3.18.2/CMakeFiles/CMakeOutput.log”. See also
“/home/fxzc/files/cmake-3.18.2/CMakeFiles/CMakeError.log”.
--------------------------------------------- Error when bootstrapping CMake: Problem while running initial CMake
解决方式:
sudo apt-get instll openssl
sudo apt-get install libssl-dev