Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install cmake in linux system

2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article is about how to install cmake in a linux system. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

CMake (Cross platform Make) is an open source cross-platform automatic build tool, which can generate a variety of makefile or project files across platforms, and support the use of various compilation tools to generate executable programs or link libraries.

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

Thank you for reading! This is the end of the article on "how to install cmake in the linux system". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report