gcc_650.sh在姜峰等同学编写的gcc 6.5.0安装编译文档的基础上完成,由于时间仓促,仅支持6.5.0版本,需要其他版本的同学请自行修改脚本中相关版本内容,且仅支持在VGPU01-04上使用。
由于安装编译时间较长,所以建议挂后台运行,建议命令如下:
nohup bash gcc_650.sh [usr] [path] &
tail -f nohup.out
其中[usr]
和[path]
分别填入用户名(如zhangsy)和指定的安装目录(如gcc_650)
如果最终正确输出gcc版本号,即如下内容:
gcc (GCC) 6.5.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
说明安装成功,否则安装失败。