About installing cmake

Since the version of CMake was old, a memo when updating and getting stuck

(I referred to "install cmake on Ubuntu.".)

Erase existing cmake

sudo apt remove cmake

Drop the latest cmake

Drop the version of cmake you want to install from the CMake download page

wget https://cmake.org/files/v3.19/cmake-3.19.2.tar.gz

Try to configure

Unpack the tar and try to ./configure. (According to [Linux] [cmake] How to install the latest cmake, the command ./bootstrap seems to be fine.)

tar xvf cmake-3.19.2.tar.gz
cd cmake-3.19.2
./configure

I got an error

  Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
  system variable OPENSSL_ROOT_DIR (missing: OPENSSL_LIBRARIES
  OPENSSL_INCLUDE_DIR)

Clear the error

It seems that there is no OpenSSL, so I will drop it. The solution was written in this article.

sudo apt install libssl-dev

Now ./configure works.

./configure

Post-processing

make
sudo make install

Now cmake works.

Recommended Posts

About installing cmake
About =
About method.invoke
About Kotlin
About attr_accessor
About Hinemos
About inheritance
About params
About Docker
About form_for
About Spring ③
About polymorphism
About Optional
About hashes
About JitPack
About Dockerfile
About this ()
About devise
About encapsulation
About Docker
About JAVA_HOME
About static
About exceptions
About scope
[Maven] About Maven