[CMake] ubuntu 18.04 CMake install error - jimoo
참고: cmake가 설치되어 있다면
$ sudo apt purge cmake
로 삭제해주면됨!
2. 직접 최신버전 설치방법으로 하다가 마주친 오류..
---------------------------------------------
make: 'cmake' is up to date. loading initial cache file /home/사용자이름/cmake-3.16.2/Bootstrap.cmk/InitialCacheFlags.cmake
-- 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:454 (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/사용자이름/cmake-3.16.2/CMakeFiles/CMakeOutput.log".
See also "/home/사용자이름/cmake-3.16.2/CMakeFiles/CMakeError.log".
---------------------------------------------
Error when bootstrapping CMake: Problem while running initial CMake
---------------------------------------------
해결방법!
$ sudo apt install libssl-dev
입력후 다시
$ ./bootstrap --prefix=/usr/local
하면
---------------------------------------------
CMake has bootstrapped. Now run make.
로 정상적으로 뜨는 것을 확인할 수 있다!