[转帖]Linux make: g++: Command not found
- https://www.cnblogs.com/kerrycode/p/4748606.html
Linux使用make命令时遇到“make: g++: Command not found”,这个主要是没有安装gcc-c++.x86_64,如下所示
- [root@localhost nethogs]# make
- g++ -g -Wall -Wextra -c packet.cpp
- make: g++: Command not found
- make: *** [packet.o] Error 127
- root@localhost nethogs]# yum search "gcc-c++"
- Loaded plugins: product-id, security, subscription-manager
- This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
- ==================================== N/S Matched: gcc-c++ ====================================
- gcc-c++.x86_64 : C++ support for GCC
- Name and summary matches only, use "search all" for everything.
- [root@localhost nethogs]# yum list "gcc-c++"
- Loaded plugins: product-id, security, subscription-manager
- This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
- media | 4.1 kB 00:00 ...
- Available Packages
- gcc-c++.x86_64 4.4.7-11.el6 media
- [root@localhost nethogs]# yum install "gcc-c++.x86_64"
- Loaded plugins: product-id, security, subscription-manager
- This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
- Setting up Install Process
- Resolving Dependencies
- --> Running transaction check
- ---> Package gcc-c++.x86_64 0:4.4.7-11.el6 will be installed
- --> Processing Dependency: gcc = 4.4.7-11.el6 for package: gcc-c++-4.4.7-11.el6.x86_64
- --> Processing Dependency: libstdc++-devel = 4.4.7-11.el6 for package: gcc-c++-4.4.7-11.el6.x86_64
- --> Processing Dependency: libmpfr.so.1()(64bit) for package: gcc-c++-4.4.7-11.el6.x86_64
- --> Running transaction check
- ---> Package gcc.x86_64 0:4.4.7-11.el6 will be installed
- --> Processing Dependency: cpp = 4.4.7-11.el6 for package: gcc-4.4.7-11.el6.x86_64
- --> Processing Dependency: cloog-ppl >= 0.15 for package: gcc-4.4.7-11.el6.x86_64
- ---> Package libstdc++-devel.x86_64 0:4.4.7-11.el6 will be installed
- ---> Package mpfr.x86_64 0:2.4.1-6.el6 will be installed
- --> Running transaction check
- ---> Package cloog-ppl.x86_64 0:0.15.7-1.2.el6 will be installed
- --> Processing Dependency: libppl.so.7()(64bit) for package: cloog-ppl-0.15.7-1.2.el6.x86_64
- --> Processing Dependency: libppl_c.so.2()(64bit) for package: cloog-ppl-0.15.7-1.2.el6.x86_64
- ---> Package cpp.x86_64 0:4.4.7-11.el6 will be installed
- --> Running transaction check
- ---> Package ppl.x86_64 0:0.10.2-11.el6 will be installed
- --> Finished Dependency Resolution
- Dependencies Resolved
- ==============================================================================================
- Package Arch Version Repository Size
- ==============================================================================================
- Installing:
- gcc-c++ x86_64 4.4.7-11.el6 media 4.7 M
- Installing for dependencies:
- cloog-ppl x86_64 0.15.7-1.2.el6 media 93 k
- cpp x86_64 4.4.7-11.el6 media 3.7 M
- gcc x86_64 4.4.7-11.el6 media 10 M
- libstdc++-devel x86_64 4.4.7-11.el6 media 1.6 M
- mpfr x86_64 2.4.1-6.el6 media 156 k
- ppl x86_64 0.10.2-11.el6 media 1.3 M
- Transaction Summary
- ==============================================================================================
- Install 7 Package(s)
- Total download size: 22 M
- Installed size: 53 M
- Is this ok [y/N]: y
- Downloading Packages:
- ----------------------------------------------------------------------------------------------
- Total 163 MB/s | 22 MB 00:00
- Running rpm_check_debug
- Running Transaction Test
- Transaction Test Succeeded
- Running Transaction
- Installing : mpfr-2.4.1-6.el6.x86_64 1/7
- Installing : cpp-4.4.7-11.el6.x86_64 2/7
- Installing : ppl-0.10.2-11.el6.x86_64 3/7
- Installing : cloog-ppl-0.15.7-1.2.el6.x86_64 4/7
- Installing : gcc-4.4.7-11.el6.x86_64 5/7
- Installing : libstdc++-devel-4.4.7-11.el6.x86_64 6/7
- Installing : gcc-c++-4.4.7-11.el6.x86_64 7/7
- Verifying : gcc-4.4.7-11.el6.x86_64 1/7
- Verifying : gcc-c++-4.4.7-11.el6.x86_64 2/7
- Verifying : mpfr-2.4.1-6.el6.x86_64 3/7
- Verifying : libstdc++-devel-4.4.7-11.el6.x86_64 4/7
- Verifying : cpp-4.4.7-11.el6.x86_64 5/7
- Verifying : ppl-0.10.2-11.el6.x86_64 6/7
- Verifying : cloog-ppl-0.15.7-1.2.el6.x86_64 7/7
- Installed:
- gcc-c++.x86_64 0:4.4.7-11.el6
- Dependency Installed:
- 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
- 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
- Complete!
[转帖]Linux make: g++: Command not found的更多相关文章
- Linux make: g++: Command not found
Linux使用make命令时遇到"make: g++: Command not found",这个主要是没有安装gcc-c++.x86_64,如下所示 [root@localh ...
- 解决g++:command not found(centos7.0)
问题背景,因为装了虚拟机,系统为centos7.0,由于是纯净版,没有gcc,使用命令yum install gcc安装了gcc,但是没安装g++,导致g++:command not found问题. ...
- 【亲测】<g++/gcc>CentOS下g++: command not found问题的解决(c++环境安装)
CentOS下g++: command not found问题的解决 2017年02月27日 18:09:06 阅读数:5174 标签: centosgcc 更多 个人分类: 问题分析 版权声明: ...
- Linux & terminal color & command line color
Linux & terminal color & command line color how to change Linux terminal color https://askub ...
- [转帖]Linux 硬件和系统配置查看命令小结
https://blog.csdn.net/strongwangjiawei/article/details/8208825 转帖了不少 发现自己记住的还是不多.. Linux 硬件和系统配置查看命令 ...
- [转帖]linux基础知识大纲
linux基础知识大纲 https://blog.csdn.net/CSDN___LYY/article/details/80810403 1.Linux操作系统概述Linux操作系统的发展过程.创始 ...
- [转帖]linux lsof 用法简介
linux lsof 用法简介 https://www.cnblogs.com/saneri/p/5333333.html 1.简介: lsof(list open files)是一个列出当前系统打开 ...
- [转帖]linux find -regex 使用正则表达式
linux find -regex 使用正则表达式 https://www.cnblogs.com/jiangzhaowei/p/5451173.html find之强大毋庸置疑,此处只是带领大家一窥 ...
- [转帖]linux常用命令大全(linux基础命令入门到精通+实例讲解+持续更新+命令备忘录+面试复习)
linux常用命令大全(linux基础命令入门到精通+实例讲解+持续更新+命令备忘录+面试复习) https://www.cnblogs.com/caozy/p/9261224.html 总结的挺好的 ...
- [转帖]linux之sed用法
linux之sed用法 https://www.cnblogs.com/dong008259/archive/2011/12/07/2279897.html docker images | awk ' ...
随机推荐
- LeetCode 递归篇(70、22、98、104)
70. 爬楼梯 假设你正在爬楼梯.需要 n 阶你才能到达楼顶. 每次你可以爬 1 或 2 个台阶.你有多少种不同的方法可以爬到楼顶呢? 注意:给定 n 是一个正整数. 示例 1: 输入: 2 输出: ...
- AI论文解读:基于Transformer的多目标跟踪方法TrackFormer
摘要:多目标跟踪这个具有挑战性的任务需要同时完成跟踪目标的初始化.定位并构建时空上的跟踪轨迹.本文将这个任务构建为一个帧到帧的集合预测问题,并提出了一个基于transformer的端到端的多目标跟踪方 ...
- HBuilderX获取iOS证书的打包步骤
简介: 目前app开发,很多企业都用H5框架来开发,而uniapp又是这些h5框架里面最成熟的,因此hbuilderx就成为了开发者的首选.然而,打包APP是需要证书的,那么这个证书又是如何获得呢? ...
- Kubernetes(K8S) Controller - StatefulSet、DaemonSet 介绍
无状态和有状态 无状态 Deployment 认为Pod 都是一样的.javademo1-6fb64c4664-dj4dh.javademo1-6fb64c4664-dj54s 它们的内容是一样的. ...
- CDS 重命名失败
当创建CDS视图,名称命名错误,后将视图名称更改后,激活报错(例如,第一次创建的视图名称为ZVWM014,后改为ZVMM014) SQL view ZVWM014 cannot be renamed ...
- Android内存泄露检测 LeakCanary2.0(Kotlin版)的实现原理
本文介绍了开源Android内存泄漏监控工具LeakCanary2.0版本的实现原理,同时介绍了新版本新增的hprof文件解析模块的实现原理,包括hprof文件协议格式.部分实现源码等. 一.概述 L ...
- C#排序算法4:希尔排序
希尔排序是插入排序的一种又称"缩小增量排序"(Diminishing Increment Sort),它是把记录按下标的一定增量分组,对每组使用直接插入排序算法排序:随着增量逐渐减 ...
- python常见面试题讲解(六)取近似值
题目描述 写出一个程序,接受一个正浮点数值,输出该数值的近似整数值.如果小数点后数值大于等于5,向上取整:小于5,则向下取整. 输入描述: 输入一个正浮点数值 输出描述: 输出该数值的近似整数值 示例 ...
- Redis 中bitMap使用及实现访问量
1. Bitmap 是什么 Bitmap(也称为位数组或者位向量等)是一种实现对位的操作的'数据结构',在数据结构加引号主要因为: Bitmap 本身不是一种数据结构,底层实际上是字符串,可以借助字符 ...
- git或gitee 提交代码到远程仓库
本文为博主原创,未经允许不得转载: 1. 选中远程仓库,并fork 指定的项目到自己的私仓: fork 之后,打开我的仓库便能看到刚刚fork 的项目. 2. clone 项目代码到自己电脑的本地仓库 ...