這里使用組安裝包,一次性安裝所有開發者工具。
1、查看有那些組安裝包可用。
yum grouplist | more
2、搜索一下有哪些和development有關。
yum grouplist | grep development
查到以下內容:
[root@noi ~]# yum grouplist | grep Development
There is no installed groups file.
Maybe run: yum groups mark convert (see man yum)
Development and Creative Workstation
Desktop Platform Development
Development Tools
Server Platform Development
3、我們需要的就是Development Tools這個包。
yum groupinstall "Development Tools"
會一次安裝很多常用的開發包,包括gcc,g++等編譯文件必須的工具。