Get the App
SLTechnology News&Howtos  ›  Development  › 

How to install and build system cmake under Linux

Shulou Source: shulou.com Published: 2022-06-01 16:39:02 10月03日 Update

This article mainly introduces how to install and build the system cmake under Linux. It is very detailed and has a certain reference value. Interested friends must read it!

Cmake is a cross-platform open source meta-build system that can build, test, and package software. It can be used to support a variety of native build environments, including make, Apple's xcode and Microsoft's Visual Studio.

1. View Linux digits:

# getconf LONG_BIT

two。 Get the cmake source code package. Here, I create a new folder to store the cmake.

# mkdir app

# cd / app

# wget https://cmake.org/files/v3.3/cmake-3.3.2.tar.gz

3. Decompress the source package

# tar xzvf cmake-3.3.2.tar.gz

4. Install packages such as gcc (ignored if installed)

# yum install gcc-c++

5. To install cmake, enter the decompressed cmake directory first.

# cd cmake-3.3.2

#. / bootstrap

# gmake

# make install

6. View cmake version

These are all the contents of the article "how to install and build system cmake under Linux". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Tags: Systems content source code articles value digits interests variety guys partners files folders more versions environment directories knowledge programs Apple industry Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info Huawei Shulou Information Microsoft macOS