在编译apr的时候,报错gcc没有安装,于是yum安装gcc,同样报错。
[root@plinuxossrc]#yuminstall-ygcc Loadedplugins:fastestmirror Loadingmirrorspeedsfromcachedhostfile *base:mirrors.btte.net *epel:ftp.cuhk.edu.hk *extras:mirrors.btte.net *updates:mirrors.btte.net ResolvingDependencies -->Runningtransactioncheck --->Packagegcc.x86_640:4.8.5-11.el7willbeinstalled -->ProcessingDependency:cpp=4.8.5-11.el7forpackage:gcc-4.8.5-11.el7.x86_64 -->ProcessingDependency:glibc-devel>=2.2.90-12forpackage:gcc-4.8.5-11.el7.x86_64 -->ProcessingDependency:libmpfr.so.4()(64bit)forpackage:gcc-4.8.5-11.el7.x86_64 -->ProcessingDependency:libmpc.so.3()(64bit)forpackage:gcc-4.8.5-11.el7.x86_64 -->Runningtransactioncheck --->Packagecpp.x86_640:4.8.5-11.el7willbeinstalled --->Packageglibc-devel.x86_640:2.17-157.el7_3.5willbeinstalled -->ProcessingDependency:glibc-headers=2.17-157.el7_3.5forpackage:glibc-devel-2.17-157.el7_3.5.x86_64 -->ProcessingDependency:glibc=2.17-157.el7_3.5forpackage:glibc-devel-2.17-157.el7_3.5.x86_64 -->ProcessingDependency:glibc-headersforpackage:glibc-devel-2.17-157.el7_3.5.x86_64 --->Packagelibmpc.x86_640:1.0.1-3.el7willbeinstalled --->Packagempfr.x86_640:3.1.1-4.el7willbeinstalled -->Runningtransactioncheck --->Packageglibc.x86_640:2.17-157.el7_3.4willbeupdated -->ProcessingDependency:glibc=2.17-157.el7_3.4forpackage:glibc-common-2.17-157.el7_3.4.x86_64 --->Packageglibc.x86_640:2.17-157.el7_3.5willbeanupdate --->Packageglibc-headers.x86_640:2.17-157.el7_3.5willbeinstalled -->ProcessingDependency:kernel-headers>=2.2.1forpackage:glibc-headers-2.17-157.el7_3.5.x86_64 -->ProcessingDependency:kernel-headersforpackage:glibc-headers-2.17-157.el7_3.5.x86_64 -->Runningtransactioncheck --->Packageglibc-common.x86_640:2.17-157.el7_3.4willbeupdated --->Packageglibc-common.x86_640:2.17-157.el7_3.5willbeanupdate --->Packageglibc-headers.x86_640:2.17-157.el7_3.5willbeinstalled -->ProcessingDependency:kernel-headers>=2.2.1forpackage:glibc-headers-2.17-157.el7_3.5.x86_64 -->ProcessingDependency:kernel-headersforpackage:glibc-headers-2.17-157.el7_3.5.x86_64 -->FinishedDependencyResolution Error:Package:glibc-headers-2.17-157.el7_3.5.x86_64(updates) Requires:kernel-headers>=2.2.1 Error:Package:glibc-headers-2.17-157.el7_3.5.x86_64(updates) Requires:kernel-headers Youcouldtryusing--skip-brokentoworkaroundtheproblem Youcouldtryrunning:rpm-Va--nofiles--nodigest
安装kernel-headers即可解决问题
wgethttp://vault.centos.org/5.7/os/x86_64/CentOS/kernel-headers-2.6.18-274.el5.x86_64.rpm rpm-ivhkernel-headers-2.6.18-274.el5.x86_64.rpm原文链接:https://www.f2er.com/bash/391629.html