컴퓨터비전관련

[CMake] ubuntu 18.04 CMake install error - jimoo

감._.자 2021. 5. 3. 22:01
728x90
반응형

eehoeskrap.tistory.com/397

 

[CMake] Ubuntu에 CMake 설치하기

1. apt 를 이용한 설치 (구버전이 설치됨) $ sudo apt install cmake 2. 직접 최신버전 설치 2.1 홈페이지에서 다운로드 https://cmake.org/download Download | CMake Current development distribution Each nig..

eehoeskrap.tistory.com

참고: 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.

로 정상적으로 뜨는 것을 확인할 수 있다!

728x90
반응형