随笔分类 - LInux
centos gcc升级
摘要:若未安装wget,安装wget yum install -y wget 获取阿里云镜像repo wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo 更新镜像源 1 //清除缓存
阅读全文
摘要:Centos7.9 gcc编译器默认版本为4.8.5 ,有时候会需要跟高版本的编译器,例如遇到“Qt requires c++11 support”的问题便需要升级gcc编译器。这里以gcc11为例简单讲述一下升级过程 安装centos-release-scl,出现权限问题使用超级用户(sudo)或
阅读全文