centos下 gcc安装教程


yum install glibc-static libstdc++-static -y

安装c和c++的静态库(据说如果系统中缺少libc.a和libstdc++.a编译时会出错)

gcc -v 查看是否安装成功

相关