1. https://www.cnblogs.com/kerrycode/p/4748606.html

Linux使用make命令时遇到“make: g++: Command not found”,这个主要是没有安装gcc-c++.x86_64,如下所示

  1.  
  1. [root@localhost nethogs]# make
  1. g++ -g -Wall -Wextra -c packet.cpp
  1. make: g++: Command not found
  1. make: *** [packet.o] Error 127
  1. root@localhost nethogs]# yum search "gcc-c++"
  1. Loaded plugins: product-id, security, subscription-manager
  1. This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
  1. ==================================== N/S Matched: gcc-c++ ====================================
  1. gcc-c++.x86_64 : C++ support for GCC
  1.  
  1.   Name and summary matches only, use "search all" for everything.
  1. [root@localhost nethogs]# yum list "gcc-c++"
  1. Loaded plugins: product-id, security, subscription-manager
  1. This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
  1. media                                                                  | 4.1 kB     00:00 ...
  1. Available Packages
  1. gcc-c++.x86_64                               4.4.7-11.el6                                media
  1. [root@localhost nethogs]# yum install "gcc-c++.x86_64"
  1. Loaded plugins: product-id, security, subscription-manager
  1. This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
  1. Setting up Install Process
  1. Resolving Dependencies
  1. --> Running transaction check
  1. ---> Package gcc-c++.x86_64 0:4.4.7-11.el6 will be installed
  1. --> Processing Dependency: gcc = 4.4.7-11.el6 for package: gcc-c++-4.4.7-11.el6.x86_64
  1. --> Processing Dependency: libstdc++-devel = 4.4.7-11.el6 for package: gcc-c++-4.4.7-11.el6.x86_64
  1. --> Processing Dependency: libmpfr.so.1()(64bit) for package: gcc-c++-4.4.7-11.el6.x86_64
  1. --> Running transaction check
  1. ---> Package gcc.x86_64 0:4.4.7-11.el6 will be installed
  1. --> Processing Dependency: cpp = 4.4.7-11.el6 for package: gcc-4.4.7-11.el6.x86_64
  1. --> Processing Dependency: cloog-ppl >= 0.15 for package: gcc-4.4.7-11.el6.x86_64
  1. ---> Package libstdc++-devel.x86_64 0:4.4.7-11.el6 will be installed
  1. ---> Package mpfr.x86_64 0:2.4.1-6.el6 will be installed
  1. --> Running transaction check
  1. ---> Package cloog-ppl.x86_64 0:0.15.7-1.2.el6 will be installed
  1. --> Processing Dependency: libppl.so.7()(64bit) for package: cloog-ppl-0.15.7-1.2.el6.x86_64
  1. --> Processing Dependency: libppl_c.so.2()(64bit) for package: cloog-ppl-0.15.7-1.2.el6.x86_64
  1. ---> Package cpp.x86_64 0:4.4.7-11.el6 will be installed
  1. --> Running transaction check
  1. ---> Package ppl.x86_64 0:0.10.2-11.el6 will be installed
  1. --> Finished Dependency Resolution
  1.  
  1. Dependencies Resolved
  1.  
  1. ==============================================================================================
  1. Package                   Arch             Version                     Repository       Size
  1. ==============================================================================================
  1. Installing:
  1. gcc-c++                   x86_64           4.4.7-11.el6                media           4.7 M
  1. Installing for dependencies:
  1. cloog-ppl                 x86_64           0.15.7-1.2.el6              media            93 k
  1. cpp                       x86_64           4.4.7-11.el6                media           3.7 M
  1. gcc                       x86_64           4.4.7-11.el6                media            10 M
  1. libstdc++-devel           x86_64           4.4.7-11.el6                media           1.6 M
  1. mpfr                      x86_64           2.4.1-6.el6                 media           156 k
  1. ppl                       x86_64           0.10.2-11.el6               media           1.3 M
  1.  
  1. Transaction Summary
  1. ==============================================================================================
  1. Install       7 Package(s)
  1.  
  1. Total download size: 22 M
  1. Installed size: 53 M
  1. Is this ok [y/N]:
  1. Downloading Packages:
  1. ----------------------------------------------------------------------------------------------
  1. Total                                                         163 MB/s |  22 MB     00:00    
  1. Running rpm_check_debug
  1. Running Transaction Test
  1. Transaction Test Succeeded
  1. Running Transaction
  1.   Installing : mpfr-2.4.1-6.el6.x86_64                                                    1/7
  1.   Installing : cpp-4.4.7-11.el6.x86_64                                                    2/7
  1.   Installing : ppl-0.10.2-11.el6.x86_64                                                   3/7
  1.   Installing : cloog-ppl-0.15.7-1.2.el6.x86_64                                            4/7
  1.   Installing : gcc-4.4.7-11.el6.x86_64                                                    5/7
  1.   Installing : libstdc++-devel-4.4.7-11.el6.x86_64                                        6/7
  1.   Installing : gcc-c++-4.4.7-11.el6.x86_64                                                7/7
  1.   Verifying  : gcc-4.4.7-11.el6.x86_64                                                    1/7
  1.   Verifying  : gcc-c++-4.4.7-11.el6.x86_64                                                2/7
  1.   Verifying  : mpfr-2.4.1-6.el6.x86_64                                                    3/7
  1.   Verifying  : libstdc++-devel-4.4.7-11.el6.x86_64                                        4/7
  1.   Verifying  : cpp-4.4.7-11.el6.x86_64                                                    5/7
  1.   Verifying  : ppl-0.10.2-11.el6.x86_64                                                   6/7
  1.   Verifying  : cloog-ppl-0.15.7-1.2.el6.x86_64                                            7/7
  1.  
  1. Installed:
  1.   gcc-c++.x86_64 0:4.4.7-11.el6                                                              
  1.  
  1. Dependency Installed:
  1.   cloog-ppl.x86_64 0:0.15.7-1.2.el6     cpp.x86_64 0:4.4.7-11.el6 gcc.x86_64 0:4.4.7-11.el6
  1.   libstdc++-devel.x86_64 0:4.4.7-11.el6 mpfr.x86_64 0:2.4.1-6.el6 ppl.x86_64 0:0.10.2-11.el6
  1.  
  1. Complete!

[转帖]Linux make: g++: Command not found的更多相关文章

  1. Linux make: g++: Command not found

    Linux使用make命令时遇到"make: g++: Command not found",这个主要是没有安装gcc-c++.x86_64,如下所示   [root@localh ...

  2. 解决g++:command not found(centos7.0)

    问题背景,因为装了虚拟机,系统为centos7.0,由于是纯净版,没有gcc,使用命令yum install gcc安装了gcc,但是没安装g++,导致g++:command not found问题. ...

  3. 【亲测】<g++/gcc>CentOS下g++: command not found问题的解决(c++环境安装)

    CentOS下g++: command not found问题的解决 2017年02月27日 18:09:06 阅读数:5174 标签: centosgcc 更多 个人分类: 问题分析   版权声明: ...

  4. Linux & terminal color & command line color

    Linux & terminal color & command line color how to change Linux terminal color https://askub ...

  5. [转帖]Linux 硬件和系统配置查看命令小结

    https://blog.csdn.net/strongwangjiawei/article/details/8208825 转帖了不少 发现自己记住的还是不多.. Linux 硬件和系统配置查看命令 ...

  6. [转帖]linux基础知识大纲

    linux基础知识大纲 https://blog.csdn.net/CSDN___LYY/article/details/80810403 1.Linux操作系统概述Linux操作系统的发展过程.创始 ...

  7. [转帖]linux lsof 用法简介

    linux lsof 用法简介 https://www.cnblogs.com/saneri/p/5333333.html 1.简介: lsof(list open files)是一个列出当前系统打开 ...

  8. [转帖]linux find -regex 使用正则表达式

    linux find -regex 使用正则表达式 https://www.cnblogs.com/jiangzhaowei/p/5451173.html find之强大毋庸置疑,此处只是带领大家一窥 ...

  9. [转帖]linux常用命令大全(linux基础命令入门到精通+实例讲解+持续更新+命令备忘录+面试复习)

    linux常用命令大全(linux基础命令入门到精通+实例讲解+持续更新+命令备忘录+面试复习) https://www.cnblogs.com/caozy/p/9261224.html 总结的挺好的 ...

  10. [转帖]linux之sed用法

    linux之sed用法 https://www.cnblogs.com/dong008259/archive/2011/12/07/2279897.html docker images | awk ' ...

随机推荐

  1. LeetCode 递归篇(70、22、98、104)

    70. 爬楼梯 假设你正在爬楼梯.需要 n 阶你才能到达楼顶. 每次你可以爬 1 或 2 个台阶.你有多少种不同的方法可以爬到楼顶呢? 注意:给定 n 是一个正整数. 示例 1: 输入: 2 输出: ...

  2. AI论文解读:基于Transformer的多目标跟踪方法TrackFormer

    摘要:多目标跟踪这个具有挑战性的任务需要同时完成跟踪目标的初始化.定位并构建时空上的跟踪轨迹.本文将这个任务构建为一个帧到帧的集合预测问题,并提出了一个基于transformer的端到端的多目标跟踪方 ...

  3. HBuilderX获取iOS证书的打包步骤

    简介: 目前app开发,很多企业都用H5框架来开发,而uniapp又是这些h5框架里面最成熟的,因此hbuilderx就成为了开发者的首选.然而,打包APP是需要证书的,那么这个证书又是如何获得呢? ...

  4. Kubernetes(K8S) Controller - StatefulSet、DaemonSet 介绍

    无状态和有状态 无状态 Deployment 认为Pod 都是一样的.javademo1-6fb64c4664-dj4dh.javademo1-6fb64c4664-dj54s 它们的内容是一样的. ...

  5. CDS 重命名失败

    当创建CDS视图,名称命名错误,后将视图名称更改后,激活报错(例如,第一次创建的视图名称为ZVWM014,后改为ZVMM014) SQL view ZVWM014 cannot be renamed ...

  6. Android内存泄露检测 LeakCanary2.0(Kotlin版)的实现原理

    本文介绍了开源Android内存泄漏监控工具LeakCanary2.0版本的实现原理,同时介绍了新版本新增的hprof文件解析模块的实现原理,包括hprof文件协议格式.部分实现源码等. 一.概述 L ...

  7. C#排序算法4:希尔排序

    希尔排序是插入排序的一种又称"缩小增量排序"(Diminishing Increment Sort),它是把记录按下标的一定增量分组,对每组使用直接插入排序算法排序:随着增量逐渐减 ...

  8. python常见面试题讲解(六)取近似值

    题目描述 写出一个程序,接受一个正浮点数值,输出该数值的近似整数值.如果小数点后数值大于等于5,向上取整:小于5,则向下取整. 输入描述: 输入一个正浮点数值 输出描述: 输出该数值的近似整数值 示例 ...

  9. Redis 中bitMap使用及实现访问量

    1. Bitmap 是什么 Bitmap(也称为位数组或者位向量等)是一种实现对位的操作的'数据结构',在数据结构加引号主要因为: Bitmap 本身不是一种数据结构,底层实际上是字符串,可以借助字符 ...

  10. git或gitee 提交代码到远程仓库

    本文为博主原创,未经允许不得转载: 1. 选中远程仓库,并fork 指定的项目到自己的私仓: fork 之后,打开我的仓库便能看到刚刚fork 的项目. 2. clone 项目代码到自己电脑的本地仓库 ...