linux系统安装gcc

安装nginx时会遇到错误提示gcc: command not found,需要先安装gcc

在centos7上安装成功。

# yum group list

# yum group install "Development Tools" 或 # sudo yum group install "Development Tools"

查看是否安装成功

$ whereis gcc
gcc: /usr/bin/gcc /usr/lib/gcc /usr/libexec/gcc /usr/share/man/man1/gcc.1.gz
posted @ 2017-02-08 16:28  红魔  阅读(312)  评论(0编辑  收藏  举报