Since the version of CMake was old, a memo when updating and getting stuck
(I referred to "install cmake on Ubuntu.".)
sudo apt remove 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
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)
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
make
sudo make install
Now cmake works.
Recommended Posts