CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
CMake 3.6.0 or higher is required. You are running version 3.5.1
-- Configuring incomplete, errors occurred!
I know Ubuntu uses stable releases that it can support, but some repos require later versions of cmake. I want to overwrite the old cmake with the later version of cmake, but the common PPA doesn't carry the cmake I need. How can I upgrade cmake to use the needed version without conflicts with the older version?
Warning -- Do not do step 2 if you have Robot Operating System (ROS) installed
Check your current version with:
Uninstall it with:
Visit https://cmake.org/download/ and download the latest bash script.
cmake-3.6.2-Linux-x86_64.sh
is sufficient.Copy the script to
/opt/
.Make the script executable:
Change to desired installation directory (to
/opt/
for example)/opt
by defaultRun:
You will need to press
y
twice.The script installs the binary to
/opt/cmake-3.*your_version*
so in order to get thecmake
command, make a symbolic link:Test your results with:
In the new version of cmake (ex: 3.9.6), to install, download tar file from https://cmake.org/download/. Extract the downloaded tar file and then:
I would like to follow your advice Wolf, but the script don't install the prog. So i just creat the folder but doesn't show like installed when i do
I find a other way peraps more easy :