ScaleScaleScaleScale

Tips / Nginx


How to Install Core Development Tools on CentOS / RHEL

Sometimes you need to use c/c++ compilers and other developers tools and you find that those binaries are not present on your CentOS box. The best way to solve almost all your developer needs is to install a group of packages that covers most popular development tools. Luckily, CentOS and RHEL Linux include a quick way to get rid of all this requirements from once.

On this tutorial you will learn how to install developer tools such as GNU GCC C/C++ compilers, make and many others.

The solution is called ‘Development Tools’. This tools include development tools such as gcc, automake, python, perl, debuggers, etc. This is the complete list of packages:

bison                           
byacc 
cscope
ctags
cvs
diffstat
doxygen
flex
gcc
gcc-c++
gcc-gfortran
gettext
git
indent
intltool
libtool
patch
patchutils
rcs
redhat-rpm-config
rpm-build
subversion
swig
systemtap

Plus all the dependecies of each one. So, let’s begin:

Installing development tools

As root user, type the following command:

yum groupinstall 'Development Tools'

Testing development tools

Check if Gnu gcc/c/c++ compiler exists:

gcc --version

Sample outputs:

[root@my.server.com:~]gcc --version
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-4)
Copyright (C) 2010 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.

Other way would be Testing a C program and compile it. Create a text file called hello.c and paste this content inside:

/* hello.c - A simple C program for testing */
#include 
int main(void)
{
 printf("Hello, world!n");
 return 0;
}

To compile type:

make hello

Execute the new program

./hello

At this point you should be all set with the CentOS development tools.

Popular search terms:

  • centos 7 install development tools
  • centos development tools
  • yum install development tools
  • centos developer tool
profile

Esteban Borges

Linux Geek, Webperf Addict, Nginx Fan. CTO @Infranetworking