+8 votes
in Programming by (3.8k points)

How to Install Development Tools on Centos 7 Automake, Gcc (C / C ++), Perl, Python & Debuggers

1 Answer

+9 votes
by (201k points)
How to install the Development Tools and the GNU GCC compiler for C / C ++, make, and install other programs after installing CentOS, RHEL or Fedora from a Terminal or Shell? Here I tell you the steps and commands needed. 
How to Install Development Tools on Centos 7 
To install the Developer Tools in Centos, RHEL or Fedora you have to do is install the package group "Development tools" in the linux system that require, to do this you must use the root user or have proper permissions. 
The programs that you can install this package group includes development tools such as automake, gcc, perl, python, debuggers, etc. That are needed to compile software and build new RPMs, these are some of them: 
gcc compiler 
libtool and 
gdb etc.
Installing the Development Tools 
Open a terminal or access your server via ssh, when you do, you should make sure you have root privileges to run this command so you see the # symbol at the beginning of the text, remember that this symbol is not part of the command, is the prompt that tells you you're roo privileges. To install the development tools in centos running:
# yum groupinstall "Development tools"


Example of text displayed when running the above command:

Loaded plugins: fastestmirror, langpacks 
No file installed groups. 
Maybe run: yum groups mark convert (see man yum) 
Loading mirror speeds from cached hostfile 
  * Base: centos.mirror.lstn.net 
  * Extras: mirror.steadfast.net 
  * Updates: centos.mbni.med.umich.edu 
resolving dependencies 
-> Running test transaction 
---> Package autoconf.noarch 0: 2.69-11.el7 must be installed 
-> Processing Dependency: m4> = 1.4.14 for package: autoconf-2.69-11.el7.noarch 
---> Package automake.noarch 0: 1.13.4-3.el7 must be installed 
-> Processing Dependency: perl (Thread :: Queue) for package: automake-1.13.4-3.el7.noarch 
-> Processing Dependency: perl (TAP :: Parser) for package: automake-1.13.4-3.el7.noarch 
---> Package bison.x86_64 0: 2.7-4.el7 must be installed 
---> Package byacc.x86_64 0: 1.9.20130304-3.el7 must be installed 
---> Package cscope.x86_64 0: 15.8-7.el7 must be installed 
---> Package ctags.x86_64 0: 5.8-13.el7 must be installed 
Transaction Summary 
================================================== ============================== 
Install 25 Package (+26 dependent packages)
Total download size: 72 M 
Installed size: 212 M 
Is this ok [y / d / N]: y 
Downloading packages: 
(1-51): apr-1.4.8-3.el7.x86_64.rpm | 103 kB 00:00 
(2/51): byacc-1.9.20130304-3.el7.x86_64.rpm | 65 kB 00:00 
(3/51): apr-util-1.5.2-6.el7.x86_64.rpm | 92 kB 00:00 
(4/51): cscope-15.8-7.el7.x86_64.rpm | 203 kB 00:00 
(5/51): ctags-5.8-13.el7.x86_64.rpm | 155 kB 00:00 
(6/51): diffstat-1.57-4.el7.x86_64.rpm | 35 kB 00:00 
(7/51): bison-2.7-4.el7.x86_64.rpm | 578 kB 00:01 
(8/51): dwz-0.11-3.el7.x86_64.rpm | 99 kB 00:00 
(9/51): autoconf-2.69-11.el7.noarch.rpm | 701 kB 00:01 
Unit (s) installed (s):
apr.x86_64 0: 1.4.8-3.el7 
  apr-util.x86_64 0: 1.5.2-6.el7 
  cpp.x86_64 0: 4.8.2-16.el7 
  dwz.x86_64 0: 0.11-3.el7 
  gettext-common-devel.noarch 0: 
  gettext-devel.x86_64 0: 
  glibc-devel.x86_64 0: 2.17-55.el7 
  glibc-headers.x86_64 0: 2.17-55.el7 
  kernel-debug-devel.x86_64 0: 3.10.0-123.4.4.el7 
  kernel-headers.x86_64 0: 3.10.0-123.4.4.el7 
  libgfortran.x86_64 0: 4.8.2-16.el7 
  libmpc.x86_64 0: 1.0.1-3.el7 
  libquadmath.x86_64 0: 4.8.2-16.el7 
  libquadmath-devel.x86_64 0: 4.8.2-16.el7 
  ++ libstdc - devel.x86_64 0: 4.8.2-16.el7 
  m4.x86_64 0: 1.4.16-9.el7 
  perl-Error.noarch 1: 0.17020-2.el7 
  perl-Git.noarch 0: 
  perl-TermReadKey.x86_64 0: 2.30-20.el7 
  perl-Test-Harness.noarch 0: 3.28-2.el7 
  perl-Thread-Queue.noarch 0: 3.02-2.el7 
  perl-XML-Parser.x86_64 0: 2.41-10.el7 
  perl-srpm-macros.noarch 0: 1-8.el7 
  subversion-libs.x86_64 0: 1.7.14-6.el7 
  systemtap-client.x86_64 0: 2.4-14.el7 
  systemtap-devel.x86_64 0: 2.4-14.el7
Check the installation of the Developer Tools 
When this message appears the development tools are installed on your system and you can verify this by running the following command:
$ Gcc --version 
and display a text like the following: 
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 
Ask a Question
Welcome to WikiTechSolutions where you can ask questions and receive answers from other members of the community.

You can ask a question without registration.