zoukankan      html  css  js  c++  java
  • Ubuntu18.04.5LTS下安装CMake

    Ubuntu18.04.5LTS下安装CMake

    一、安装m4

    sudo apt-get install m4

    二、安装cmake

    1、从官网:https://cmake.org/download/ 中下载cmake源码,如cmake-3.21.1.tar.gz
    2、下载后提取到一个文件夹中(也即解压压缩包)。然后,选择右键->在终端打开。
    3、依次执行以下命令:
    1. uu@uu:~/cmake-3.21.1$ ./bootstrap

    图1 第一条命令

    2. uu@uu:~/cmake-3.21.1$ make

    图2 第二条命令

    3. uu@uu:~/cmake-3.21.1$ sudo make install

    图3 第三条命令

    4. uu@uu:~/cmake-3.21.1$ cmake --version

    图4 第四条命令

    遇到的问题如下:

    在执行./bootstrap命令时遇到如下两个问题:

    【问题1】:
    Error when bootstrapping CMake: Cannot find appropriate C compiler on this system. Please specify one using environment variable CC. See cmake_bootstrap.log for compilers attempted.
    【问题1的解决办法】:sudo install gcc

    【问题2】:
    C++ compiler on this system is: g++ Error when bootstrapping CMake:Cannot find appropriate Makefile processor on this system.Please specify one using environment variable MAKE. Log of errors: /root/cmake-3.21.1/Bootstrap.cmk/cmake_bootstrap.log.
    【问题2的解决办法】:sudo apt-get install g++

  • 相关阅读:
    pycharm 2016.2注册码
    python selenium2
    webdriver.py--解说
    Sahi ---实现 Web 自动化测试
    性能测试
    看云-git类的书籍写作
    IntelliJ IDEA 对于generated source的处理
    各种常用的序列化性能的对比
    rpc框架--grpc-java
    grpc mvn protobuf:compile 过程
  • 原文地址:https://www.cnblogs.com/sdx-highlight/p/15181374.html
Copyright © 2011-2022 走看看