![]() CMake is an open-source, cross-platform family of tools designed to build, test, and package software. CMake is used to control the software compilation process using simple platform and compiler-independent configuration files, and generate native makefiles and workspaces that can be used in the compiler environment of your choice. The suite of CMake tools was created by Kitware in response to the need for a powerful, cross-platform build environment for open-source projects such as ITK and VTK. In this article, we will describe how you can install CMake to your Ubuntu both through the UI and the command line. We have run the commands and procedures mentioned in this article on a Ubuntu 20.04 LTS system. The latest version of CMake at the time of writing this article was 3.20.0 and luckily available through the Snap Store. Here, we will explain how you can install it through the Ubuntu Software Manager. Installationįor a person who does not want to open the Command Line much, installing software present in the Ubuntu repository through the UI is very simple. On your Ubuntu desktop Activities toolbar, click the Ubuntu Software icon. The search results will display Cmake as follows: In the following view, click on the search icon and enter “CMake” in the search bar. The first package listed in the search result is the one maintained by the Snap Store. From the Software Manager, click on the CMake entry to open the following view:Ĭlick the Install button to begin the installation process. After that, the installation process will begin, displaying a progress bar as follows.ĬMake will then be installed to your system and you will get the following message after a successful installation: The following authentication dialog will display for you to provide your authentication details as only an authorized user can install software on Ubuntu.Įnter your password and click the Authenticate button. ![]() If you want to remove CMake that was installed using the above method, you can remove it from your system as follows: Note: The same version of the software can be installed through the command line using the following command: $ sudo snap install cmake Remove CMake Through the above dialog, you can choose to directly launch CMake and even Remove it immediately for whatever reason. Open the Ubuntu Software Manager and search for CMake. Click this entry and then click Remove from the following view: You will see the “Installed” status in the search entry. Then, the system will prompt you with an Authentication dialog. Install CMake through the Ubuntu Command Line The software will be removed when you provide the password for the sudo user and click Authenticate on the dialog. ![]() That’s it, now you have the latest version of CMake installed on your Ubuntu Linux machine, as you can see from the output of the cmake -version command below.If you prefer the command line over the UI, here is the method you will need to follow in order to install the latest version of CMake. (Note: replace v3.20.2 with the version you want to install, see the CMake download page for a list of versions) sudo apt install build-essential libssl-dev Run the following commands to download, compile and install CMake: This can take much longer, depending on how powerful your machines processor is. The second option is to download the source code from the CMake website and compile it on your Linux machine. You can check to see if it’s installed by running: cmake -version sudo apt-get install checkinstall this will take more time than you expect sudo checkinstall -pkgnamecmake -pkgversion '3.20-custom' -default reset shell cache for tools paths hash -r. 2 Answers Sorted by: 18 I ran into the same problem last year. Install it with Snappy by running the following command: sudo snap install cmake -classic Using the Snappy package manager is the quickest and easiest way to install the latest version of CMake on Ubuntu Linux. Run the following commands to remove it: sudo apt remove -purge cmakeĪs of writing the latest version of CMake is 3.20.2 which can be installed using one of the following two options: Remove old versionīefore we begin, you’ll want to remove any previous versions of CMake that were installed with APT. This tutorial shows you how to install the latest version so that you can build software that requires newer CMake features. How to Install CMake on Ubuntu 20.04 LTS - VITUX WebInstalling cmake on Linux If you dont have cmake version 3.10 (for. When you install CMake with APT, you’ll notice it installs an older version.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |