出现No package gcc+ available解决办法

系统

CentOS Linux release 7.4.1708 (Core)

安装gcc时报错

[root@ip-172-29-0-155 node-v10.15.3]# yum -y install gcc+
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
No package gcc+ available.

解决办法

1)找到支持的版本

[root@ip-172-29-0-155 node-v10.15.3]# yum search "gcc-c++"
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
================================================================================================================ N/S matched: gcc-c++ ================================================================================================================
gcc-c++.x86_64 : C++ support for GCC

  Name and summary matches only, use "search all" for everything.

2)安装

yum install gcc-c++.x86_64

原文地址:https://www.cnblogs.com/lemon-le/p/10538130.html

时间: 2024-08-30 03:12:18

出现No package gcc+ available解决办法的相关文章

Centos6.3不能使用yum install安装gcc编辑器解决办法

mv /var/lib/rpm/__db* /tmp rpm --rebuilddb yum clean all Centos6.3不能使用yum install安装gcc编辑器解决办法,布布扣,bubuko.com

vs2012 提示 未能正确加载 "Visual C++ Language Manager Package" 包 的解决办法

vs2012 提示 未能正确加载 "Visual C++ Language Manager Package" 包 的解决办法 来源 https://www.cnblogs.com/zhangdongsheng/p/5846790.html 1.  点击 vs2012菜单栏 工具-> Visual Studio 命令提示 打开命令窗口 2. 输入命令  "devenv /Setup" 3. 重新打开 vs2012 Windows PowerShell 版权所有

ubuntu-E:Encountered a section with no Package: header的解决办法 (转)

E:Encountered a section with no Package: header, E:Problem with MergeList /var/lib/apt/lists/cn.archive.ubuntu.com_ubuntu_dists_natty_main_binary-i386_Packages …………………… 在网上搜到了解决办法,现在记录下来,以便今后查阅: 终端中输入以下两条命令: sudo rm /var/lib/apt/lists/* -vf sudo apt-

ubuntu-E:Encountered a section with no Package: header的解决办法

刚才打开ubuntu,我的版本是12.04.正想使用sudo apt-get install build-essential 时,出现了如下错误: E:Encountered a section with no Package: header, E:Problem with MergeList /var/lib/apt/lists/cn.archive.ubuntu.com_ubuntu_dists_natty_main_binary-i386_Packages …………………… 在网上搜到了解

yum安装出现No package crontabs available解决办法

其意思是:yum中不存在这个包 所以解决办法是 1.更新yum   更新yum仓库: yum -y update 2.查看包名在yum中是什么   yum search  all crontabs 原文地址:https://www.cnblogs.com/Rivend/p/11992679.html

yum安装出现No package vim available解决办法

今天我在用CentOS 7的yum命令安装的时候出现如下错误: [[email protected] ~]# yum install vimLoaded plugins: fastestmirrorLoading mirror speeds from cached hostfile* base: mirror.hosting90.cz* extras: mirror.hosting90.cz* updates: mirror.hosting90.czSetting up Install Proc

No package tomcatX available. 解决办法

当一个新的linux系统到手时,就要开始部署相关软件等等,有时候可能遇到无法安装的情况. 例如yum install tomcat7,在centos下无法安装,因为tomcat不再yum里面,怎么办呢? 这里提供一种方法 :使用wget下载,不知道具体路径也没关系,可以直接进入tomcat的官方下载页面, 然后复制下载链接,粘贴到服务器wget命令后即可. 例如:wget http://mirror.bit.edu.cn/apache/tomcat/tomcat-7/v7.0.70/bin/ap

详细!交叉编译时 note: the mangling of 'va_list' has changed in GCC 4.4解决办法

为什么要在标题前面加了详细两个字,就是为了吸引看文章的你还有写文章的我这种小白,我是从坑里面爬出来了. 废话少说.... 问题就是这样子了,至于解决办法,在网上搜索了很久,大多数以一段英文作为解决办法,... I think that the warning is accurate; the mangling of va_list has indeed changed on ARM in GCC 4.4 in order to conform to the ARM ABI specificati

struts异常:Caused by: Parent package is not defined: json-default - [unknown location]解决办法

问题描述: Unable to load configuration. - [unknown location] at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:70) at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:445)