1、debian系统安装命令
apt-get install build-essential
执行结果出错:
Do you want to continue? [Y/n] y
Get:1 http://mirrors.163.com/debian stretch/main amd64 bzip2 amd64 1.0.6-8.1 [47.5 kB]
Get:2 http://mirrors.163.com/debian stretch/main amd64 xz-utils amd64 5.2.2-1.2+b1 [266 kB]
Get:3 http://mirrors.163.com/debian stretch/main amd64 binutils amd64 2.28-5 [3,770 kB]
Err:4 http://mirrors.163.com/debian stretch/main amd64 libc-dev-bin amd64 2.24-11+deb9u3
404 Not Found
Ign:5 http://mirrors.163.com/debian stretch/main amd64 linux-libc-dev amd64 4.9.82-1+deb9u3
Ign:6 http://mirrors.163.com/debian stretch/main amd64 libc6-dev amd64 2.24-11+deb9u3
Get:7 http://mirrors.163.com/debian stretch/main amd64 libisl15 amd64 0.18-1 [564 kB]
Get:8 http://mirrors.163.com/debian stretch/main amd64 libmpfr4 amd64 3.1.5-1 [556 kB]
Err:4 http://mirrors.aliyun.com/debian stretch/main amd64 libc-dev-bin amd64 2.24-11+deb9u3
404 Not Found
Err:6 http://mirrors.aliyun.com/debian stretch/main amd64 libc6-dev amd64 2.24-11+deb9u3
404 Not Found
2、需要执行 apt-get update:
3、再次执行安装命令
apt-get install build-essential
4、安装成功,查看gcc版本
gcc –version
5、手动下载安装包:
可以在GCC的官方网站
http://gcc.gnu.org/
下载到各个版本
6、手动安装连接参考文章: