CentOS 7/RHEL 7: How TO Install GCC Compiler and Development Tools

I would like to install GCC compiler and development tools on my centos 7 or rhel 7 system. How DO I install gcc compiler and development tools under centos 7 or rhel linux operating system? this post will show you how to install gcc compiler and development tools.

CentOS 7 check available yum group 


You need to check the yum group in current system if there is a “development tools” group, issue the following command:

yum group list

​outputs:

[root@devops Desktop]# yum group list

Loaded plugins: fastestmirror, langpacks

There is no installed groups file.

Maybe run: yum groups mark convert (see man yum)

Loading mirror speeds from cached hostfile

 * base: mirrors.163.com

 * extras: mirrors.skyshe.cn

 * updates: mirrors.skyshe.cn

Available environment groups:

   Minimal Install

   Infrastructure Server

   File and Print Server

   Basic Web Server

   Virtualization Host

   Server with GUI

   GNOME Desktop

   KDE Plasma Workspaces

   Development and Creative Workstation

Available Groups:

   Compatibility Libraries

   Console Internet Tools

   Development Tools

   Graphical Administration Tools

   Legacy UNIX Compatibility

   Scientific Support

   Security Tools

   Smart Card Support

   System Administration Tools

   System Management

Done

CentOS 7 Install Gcc compiler and Development tools


To install gcc compiler and development tools by issue the following command as root user:

yum groupinstall "Development Tools"

This yum groups will install some basic development tools, such as: gcc,autoconf, automake,make….

CentOS 7 check GCC version


If you want to check if gcc is installed successfully, just issue the following command:

gcc --version

outputs:

[root@devops Desktop]# gcc --version

gcc (GCC) 4.8.2 20140120 (Red Hat 4.8.2-16)

Copyright (C) 2013 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.

 

You might also like:

Sidebar



back to top