CMake is a cross-platfORM, open-source build system. CMake is a family of tools designed to build, test and
CMake is a cross-platfORM, open-source build system. CMake is a family of tools designed to build, test and package software.
Here are the simple steps to download, configure, compile, and install CMake on a linux Machine. I have tested these instructions on Debian/ubuntu Linux distributions but they should work on all Linux machines where compilers and make utilities are installed. Please take a look at configuring Ubuntu Linux after installation to configure your Debian/Ubuntu Linux box for the required tools.
Please make sure you check the downloaded file's integrity before unzipping it. '#' (w/o quotes) in front of commands below means you have to run the command as root user (or use sudo
$ wget Http://www.cmake.org/files/v2.8/cmake-2.8.3.tar.gz
$ tar xzf cmake-2.8.3.tar.gz
$ cd cmake-2.8.3
If you want to see the available conifuration options, run command below.
$ ./configure --help
In order to configure cmake before installation, run command below.
$ ./configure --prefix=/opt/cmake
We basically instructed the install script to install CMake in /opt/cmake.
$ make
# make install
After installation without any errors you can verify the installation by running the command below:
$ /opt/cmake/bin/cmake -version
The output should look something like below (depending upon cmake version you are installing).
cmake version 2.8.3
Please feel free to use the comments form below if you have any questions or need more explanation on anything. Use the icons below to share this tutorial with your friends.
--结束END--
本文标题: 如何在 Linux 上下载、编译和安装 CMake
本文链接: https://lsjlt.com/news/11273.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
2024-03-01
2024-03-01
2024-03-01
2024-03-01
2024-03-01
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0