解决CentOS安装gcc时的一个错误问题
不知道大家也曾像我一样,在更新CentOS安装gcc的时候,总是提示出错。后来,我终于找到了好的方法来解决它。下面,我们就来分析并解决CentOS安装gcc的问题。
起因是在一个trixbox上安装gcc
第一步,更新系统的软件包到最新
yum -y update
漫长的等待过后,reboot,然后再次运行了
yum -y update 确认再没有可更新的模块了。
接下来,CentOS安装GCC
yum -y install gcc
没想到出错啦,貌似是缺少kernel-headers,
So, I try "yum install kernel-headers": [trixbox1.localdomain src]# yum install kernel-headers Loading "installonlyn" plugin Setting up Install Process Setting up repositories Reading repository metadata in from local files Excluding Packages from CentOS-5 - Base Finished Excluding Packages from CentOS-5 - Updates Finished Excluding Packages from CentOS-5 - Addons Finished Excluding Packages from CentOS-5 - Extras Finished Parsing package install arguments Nothing to do [trixbox1.localdomain src]#
相关推荐
zghover 2020-06-25
wanyi0 2020-11-03
onlykg 2020-08-01
xuguiyi00 2020-07-09
FlightForever 2020-06-28
zllbirdonland 2020-06-16
choupiaoyi 2020-06-13
Wonder的学习 2020-06-11
cwgxiaoguizi 2020-06-07
secondid 2020-06-06
昭君出塞 2020-06-03
fushilin 2020-06-03
jackadmi 2020-06-03
85407718 2020-05-30
wanggongzhen 2020-05-28
sunln00 2020-05-07
wangxiaoxue 2020-05-05
ningningmingming 2020-05-01