• bash: cmake: command not found...


    centos中安装那个cmake。

    1、问题

    [root@PC3 home]# cmake
    bash: cmake: command not found...
    Similar command is: 'make'

    当前系统:

    [root@PC3 home]# lsb_release -a
    LSB Version:    :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch
    Distributor ID: RedHatEnterpriseServer
    Description:    Red Hat Enterprise Linux Server release 7.0 (Maipo)
    Release:        7.0
    Codename:       Maipo

    2、安装cmake

    [root@PC3 home]# yum install cmake
    Loaded plugins: langpacks, product-id, subscription-manager
    This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
    rhel7                                                                                                         | 4.1 kB  00:00:00
    Resolving Dependencies
    --> Running transaction check
    ---> Package cmake.x86_64 0:2.8.11-4.el7 will be installed
    --> Finished Dependency Resolution
    
    Dependencies Resolved
    
    =====================================================================================================================================
     Package                      Arch                          Version                               Repository                    Size
    =====================================================================================================================================
    Installing:
     cmake                        x86_64                        2.8.11-4.el7                          rhel7                        6.7 M
    
    Transaction Summary
    =====================================================================================================================================
    Install  1 Package
    
    Total download size: 6.7 M
    Installed size: 25 M
    Is this ok [y/d/N]: y
    Downloading packages:
    Running transaction check
    Running transaction test
    Transaction test succeeded
    Running transaction
      Installing : cmake-2.8.11-4.el7.x86_64                                                                                         1/1
      Verifying  : cmake-2.8.11-4.el7.x86_64                                                                                         1/1
    
    Installed:
      cmake.x86_64 0:2.8.11-4.el7
    
    Complete!

    3、测试效果

    [root@PC3 home]# cmake --version
    cmake version 2.8.11
    [root@PC3 home]# cmake | head
    cmake version 2.8.11
    Usage
    
      cmake [options] <path-to-source>
      cmake [options] <path-to-existing-build>
    
    Options
      -C <initial-cache>          = Pre-load a script to populate the cache.
      -D <var>:<type>=<value>     = Create a cmake cache entry.
      -U <globbing_expr>          = Remove matching entries from CMake cache.
  • 相关阅读:
    dubbo服务配置
    架构基本概念和架构本质
    最大子数组和问题
    struts2简单登陆页面
    四则运算随机出题
    省赛训练赛赛题(简单题)
    Ubuntu虚拟机安装,vritualbox虚拟机软件的使用
    Rational Rose 2007破解版
    netbeans出现的错误
    快速幂
  • 原文地址:https://www.cnblogs.com/liujiaxin2018/p/14987660.html
Copyright © 2020-2023  润新知