VPS侦探论坛

 找回密码
 注册
查看: 3050|回复: 1

LNMP1.7升级gcc出错

[复制链接]
发表于 2020-9-10 22:25:32 | 显示全部楼层 |阅读模式

yum -y install devtoolset-2-gcc devtoolset-2-binutils devtoolset-2-gcc-c++
testing 2 devtools for CentOS 8                                                                                                                                                                                  7.6 kB/s | 7.6 kB     00:01   
Errors during downloading metadata for repository 'testing-devtools-2-centos-8':
  - Status code: 404 for https://people.centos.org/tru/devtools-2/8/x86_64/RPMS/repodata/repomd.xml (IP: 2607:ff28:8005:3:5054:ff:fe9c:bd65)
Error: Failed to download metadata for repo 'testing-devtools-2-centos-8': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried


美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2020-9-11 10:09:15 | 显示全部楼层


centos 8??
centos 8的话是自带gcc 8.3,devtools-2是gcc 4.8,你确定这是升级
你如果要编译安装ngx_pagespeed的话centos 8自带的版本就是满足C++11标准的

升级gcc的话参考教程:https://www.vpser.net/manage/centos-6-upgrade-gcc.html
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-21 11:11 , Processed in 0.025808 second(s), 18 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表