1. cmake 다운로드 홈페이지로 이동합니다.
Download | CMake
Current development distribution Each night binaries are created as part of the testing process. Other than passing all of the tests in CMake, this version of CMake should not be expected to work in a production environment. It is being produced so that us
cmake.org
2. 최신버전 다운로드 파일의 링크를 복사합니다.

3. wget을 통해 로컬 공간으로 다운로드합니다.
wget https://github.com/Kitware/CMake/releases/download/v3.25.1/cmake-3.25.1.tar.gz
4. 압축을 해제하고, 폴더로 들어가 아래 명령어를 입력해 빌드 및 설치를 진행합니다.
tar -xvzf cmake-3.25.1.tar.gz
cd cmake-3.25.1
./bootstrap --prefix=/usr/local
make
make install
Error 발생 시
"./bootstrap --prefix=/usr/local" 명령어를 실행하는 도중 에러를 만날 수 있습니다.
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)
아래 명령어를 통해 패키지를 설치합니다.
sudo apt install libssl-dev
5. 터미널을 다시 열거나 재부팅하고, 잘 설치되었는지 버전을 확인합니다.
cmake --version
'CS & Programming' 카테고리의 다른 글
Git branch 확인하고 생성하기 (0) | 2023.01.10 |
---|---|
Linux/Ubuntu(리눅스/우분투) 하위 "폴더만" 삭제하기 (0) | 2022.12.30 |
Ubuntu rm: descend into write-protected directory 'X', 파일 권한 코드를 알아보자 (0) | 2022.12.07 |
vscode에서 black으로 code format 자동화하기 (python) (0) | 2022.04.03 |
Ubuntu 20.04에서 swap 메모리 설정하기 (0) | 2022.04.02 |