DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 966,155 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
SolBeen Kwon
SolBeen Kwon

Posted on

How to install CMAKE (lastest version)

Let's install openssl before installing cmake.

1. openSSL install
homepage download
openssl download

sudo apt install wget
wget https://www.openssl.org/source/openssl-1.1.1d.tar.gz
tar openssl-1.1d.tar.gz
cd openssl-1.1.1d
Enter fullscreen mode Exit fullscreen mode

build OpenSSL

./config
make
make test
sudo make install
Enter fullscreen mode Exit fullscreen mode

2.Cmake at lastest version install

2.1 ν™ˆνŽ˜μ΄μ§€μ—μ„œ λ‹€μš΄λ‘œλ“œ

cmake download

2.2 wget 으둜 λ‹€μš΄λ‘œλ“œ

wget https://cmake.org/files/v3.16/cmake-3.16.2.tar.gz

Enter fullscreen mode Exit fullscreen mode

2.3 μ••μΆ•ν’€κΈ° 및 μ„€μΉ˜

$ tar -xvzf ν•΄λ‹ΉνŒŒμΌ.tar.gz
$ cd 압좕풀린폴더
$ ./bootstrap --prefix=/usr/local
$ make
$ make install

Enter fullscreen mode Exit fullscreen mode

2.4 μ„€μΉ˜ 확인

$ cmake --version

Enter fullscreen mode Exit fullscreen mode

λ§Œμ•½μ— ν•΄λ‹Ή λͺ…λ Ήμ–΄λ₯Ό 찾을 수 μ—†λ‹€κ³  λ‚˜μ˜€λŠ” κ²½μš°μ—λŠ”

$ vi ~./bash_profile

Enter fullscreen mode Exit fullscreen mode

μ•„λž˜μ™€ 같이 패슀 μˆ˜μ •

PATH=/usr/local/bin:$PATH:$HOME/bin
Enter fullscreen mode Exit fullscreen mode

κ·Έ λ‹€μŒ ssh λ₯Ό μž¬μ‹œμž‘ ν•˜λ©΄ λœλ‹€.

Top comments (0)

🌱 DEV runs on 100% open source code that we started called Forem.

You can contribute to the codebase or host your own.