How To Install Core Development Tools On CentOS/RHEL Linux
This post will guide you how to install core development tools to compile C or C++ programs (such as: GNU GCC C or C++ compiler collections, automake, rpmbuild, gdb,libtool, autoconf,pkgconfig and others dependecy packages) on a fresh installation of CentOS/RHEL Linux system.
Install Core Development Tools
In CentOS/RHEL Linux, you just need to install “Development Tools” group via command Line interface, and it will install core development tools such as: GNU GCC C/C++ compiler collections, automake, gdb debugges. issue the following command in CLI:
$ sudo yum groupinstall "Development Tools"
Or
$ sudo yum group install "Development Tools"
Outputs:
[root@osetc ~]# yum groupinstall "Development Tools" Loaded plugins: fastestmirror Setting up Group Process Determining fastest mirrors epel/metalink | 11 kB 00:00 * base: mirror.sjc02.svwh.net * epel: mirror.sfo12.us.leaseweb.net * extras: mirror.sfo12.us.leaseweb.net * updates: mirror.sfo12.us.leaseweb.net base | 3.7 kB 00:00 epel | 3.2 kB 00:00 epel/primary | 3.2 MB 00:00 epel 12497/12497 extras | 3.4 kB 00:00 updates | 3.4 kB 00:00 updates/primary_db | 1.9 MB 00:00 base/group_gz | 242 kB 00:00 epel/group_gz | 71 kB 00:00 Package redhat-rpm-config-9.0.3-51.el6.centos.noarch already installed and latest version Package 1:make-3.81-23.el6.x86_64 already installed and latest version Package 1:pkgconfig-0.23-9.1.el6.x86_64 already installed and latest version Resolving Dependencies There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them. The program yum-complete-transaction is found in the yum-utils package. --> Running transaction check ---> Package autoconf.noarch 0:2.63-5.1.el6 will be installed --> Processing Dependency: m4 >= 1.4.7 for package: autoconf-2.63-5.1.el6.noarch ---> Package automake.noarch 0:1.11.1-4.el6 will be installed ---> Package binutils.x86_64 0:2.20.51.0.2-5.47.el6_9.1 will be updated ---> Package binutils.x86_64 0:2.20.51.0.2-5.48.el6 will be an update ---> Package bison.x86_64 0:2.4.1-5.el6 will be installed ---> Package byacc.x86_64 0:1.9.20070509-7.el6 will be installed ---> Package cscope.x86_64 0:15.6-7.el6 will be installed ---> Package ctags.x86_64 0:5.8-2.el6 will be installed ---> Package cvs.x86_64 0:1.11.23-16.el6 will be installed ---> Package diffstat.x86_64 0:1.51-2.el6 will be installed ---> Package doxygen.x86_64 1:1.6.1-6.el6 will be installed ---> Package elfutils.x86_64 0:0.164-2.el6 will be installed ---> Package flex.x86_64 0:2.5.35-9.el6 will be installed ---> Package gcc.x86_64 0:4.4.7-18.el6 will be updated ---> Package gcc.x86_64 0:4.4.7-23.el6 will be an update --> Processing Dependency: libgomp = 4.4.7-23.el6 for package: gcc-4.4.7-23.el6.x86_64 --> Processing Dependency: cpp = 4.4.7-23.el6 for package: gcc-4.4.7-23.el6.x86_64 --> Processing Dependency: libgcc >= 4.4.7-23.el6 for package: gcc-4.4.7-23.el6.x86_64 ---> Package gcc-c++.x86_64 0:4.4.7-23.el6 will be installed --> Processing Dependency: libstdc++-devel = 4.4.7-23.el6 for package: gcc-c++-4.4.7-23.el6.x86_64 --> Processing Dependency: libstdc++ = 4.4.7-23.el6 for package: gcc-c++-4.4.7-23.el6.x86_64 ---> Package gcc-gfortran.x86_64 0:4.4.7-23.el6 will be installed --> Processing Dependency: libgfortran = 4.4.7-23.el6 for package: gcc-gfortran-4.4.7-23.el6.x86_64 --> Processing Dependency: libgfortran.so.3()(64bit) for package: gcc-gfortran-4.4.7-23.el6.x86_64 ---> Package gettext.x86_64 0:0.17-18.el6 will be installed ---> Package git.x86_64 0:1.7.1-9.el6_9 will be installed --> Processing Dependency: perl-Git = 1.7.1-9.el6_9 for package: git-1.7.1-9.el6_9.x86_64 --> Processing Dependency: perl(Git) for package: git-1.7.1-9.el6_9.x86_64 --> Processing Dependency: perl(Error) for package: git-1.7.1-9.el6_9.x86_64 ---> Package indent.x86_64 0:2.2.10-7.el6 will be installed ---> Package intltool.noarch 0:0.41.0-1.1.el6 will be installed --> Processing Dependency: perl(XML::Parser) for package: intltool-0.41.0-1.1.el6.noarch --> Processing Dependency: gettext-devel for package: intltool-0.41.0-1.1.el6.noarch ---> Package libtool.x86_64 0:2.2.6-15.5.el6 will be installed ---> Package patch.x86_64 0:2.6-8.el6_9 will be installed ---> Package patchutils.x86_64 0:0.3.1-3.1.el6 will be installed ---> Package rcs.x86_64 0:5.7-37.el6 will be installed ---> Package rpm-build.x86_64 0:4.8.0-59.el6 will be installed --> Processing Dependency: rpm = 4.8.0-59.el6 for package: rpm-build-4.8.0-59.el6.x86_64 --> Processing Dependency: xz for package: rpm-build-4.8.0-59.el6.x86_64 --> Processing Dependency: lzma for package: rpm-build-4.8.0-59.el6.x86_64 --> Processing Dependency: /usr/bin/gdb-add-index for package: rpm-build-4.8.0-59.el6.x86_64 ---> Package subversion.x86_64 0:1.6.11-15.el6_7 will be installed --> Processing Dependency: perl(URI) >= 1.17 for package: subversion-1.6.11-15.el6_7.x86_64 --> Processing Dependency: libneon.so.27()(64bit) for package: subversion-1.6.11-15.el6_7.x86_64 ---> Package swig.x86_64 0:1.3.40-6.el6 will be installed ---> Package systemtap.x86_64 0:2.9-9.el6 will be installed --> Processing Dependency: systemtap-devel = 2.9-9.el6 for package: systemtap-2.9-9.el6.x86_64 --> Processing Dependency: systemtap-client = 2.9-9.el6 for package: systemtap-2.9-9.el6.x86_64 --> Running transaction check ---> Package cpp.x86_64 0:4.4.7-18.el6 will be updated ---> Package cpp.x86_64 0:4.4.7-23.el6 will be an update ---> Package gdb.x86_64 0:7.2-92.el6 will be installed ---> Package gettext-devel.x86_64 0:0.17-18.el6 will be installed --> Processing Dependency: gettext-libs = 0.17-18.el6 for package: gettext-devel-0.17-18.el6.x86_64 --> Processing Dependency: libgettextpo.so.0()(64bit) for package: gettext-devel-0.17-18.el6.x86_64 --> Processing Dependency: libgcj_bc.so.1()(64bit) for package: gettext-devel-0.17-18.el6.x86_64 --> Processing Dependency: libasprintf.so.0()(64bit) for package: gettext-devel-0.17-18.el6.x86_64 ---> Package libgcc.x86_64 0:4.4.7-18.el6 will be updated ---> Package libgcc.x86_64 0:4.4.7-23.el6 will be an update ---> Package libgfortran.x86_64 0:4.4.7-23.el6 will be installed ---> Package libgomp.x86_64 0:4.4.7-18.el6 will be updated ---> Package libgomp.x86_64 0:4.4.7-23.el6 will be an update ---> Package libstdc++.x86_64 0:4.4.7-18.el6 will be updated ---> Package libstdc++.x86_64 0:4.4.7-23.el6 will be an update ---> Package libstdc++-devel.x86_64 0:4.4.7-23.el6 will be installed ---> Package m4.x86_64 0:1.4.13-5.el6 will be installed ---> Package neon.x86_64 0:0.29.3-3.el6_4 will be installed --> Processing Dependency: libgnutls.so.26(GNUTLS_1_4)(64bit) for package: neon-0.29.3-3.el6_4.x86_64 --> Processing Dependency: libproxy.so.0()(64bit) for package: neon-0.29.3-3.el6_4.x86_64 --> Processing Dependency: libpakchois.so.0()(64bit) for package: neon-0.29.3-3.el6_4.x86_64 --> Processing Dependency: libgnutls.so.26()(64bit) for package: neon-0.29.3-3.el6_4.x86_64 ---> Package perl-Error.noarch 1:0.17015-4.el6 will be installed ---> Package perl-Git.noarch 0:1.7.1-9.el6_9 will be installed ---> Package perl-URI.noarch 0:1.40-2.el6 will be installed ---> Package perl-XML-Parser.x86_64 0:2.36-7.el6 will be installed --> Processing Dependency: perl(LWP) for package: perl-XML-Parser-2.36-7.el6.x86_64 ---> Package rpm.x86_64 0:4.8.0-55.el6 will be updated --> Processing Dependency: rpm = 4.8.0-55.el6 for package: rpm-libs-4.8.0-55.el6.x86_64 --> Processing Dependency: rpm = 4.8.0-55.el6 for package: rpm-python-4.8.0-55.el6.x86_64 ---> Package rpm.x86_64 0:4.8.0-59.el6 will be an update ---> Package systemtap-client.x86_64 0:2.9-9.el6 will be installed --> Processing Dependency: systemtap-runtime = 2.9-9.el6 for package: systemtap-client-2.9-9.el6.x86_64 --> Processing Dependency: zip for package: systemtap-client-2.9-9.el6.x86_64 --> Processing Dependency: libavahi-common.so.3()(64bit) for package: systemtap-client-2.9-9.el6.x86_64 --> Processing Dependency: libavahi-client.so.3()(64bit) for package: systemtap-client-2.9-9.el6.x86_64 ---> Package systemtap-devel.x86_64 0:2.9-9.el6 will be installed --> Processing Dependency: kernel-devel for package: systemtap-devel-2.9-9.el6.x86_64 ---> Package xz.x86_64 0:4.999.9-0.5.beta.20091007git.el6 will be installed ---> Package xz-lzma-compat.x86_64 0:4.999.9-0.5.beta.20091007git.el6 will be installed --> Running transaction check ---> Package avahi-libs.x86_64 0:0.6.25-17.el6 will be installed ---> Package gettext-libs.x86_64 0:0.17-18.el6 will be installed ---> Package gnutls.x86_64 0:2.12.23-22.el6 will be installed ---> Package kernel-devel.x86_64 0:2.6.32-754.6.3.el6 will be installed ---> Package libgcj.x86_64 0:4.4.7-23.el6 will be installed --> Processing Dependency: libart_lgpl >= 2.1.0 for package: libgcj-4.4.7-23.el6.x86_64 --> Processing Dependency: gtk2 >= 2.4.0 for package: libgcj-4.4.7-23.el6.x86_64 --> Processing Dependency: libasound.so.2(ALSA_0.9)(64bit) for package: libgcj-4.4.7-23.el6.x86_64 --> Processing Dependency: libpangoft2-1.0.so.0()(64bit) for package: libgcj-4.4.7-23.el6.x86_64 --> Processing Dependency: libpangocairo-1.0.so.0()(64bit) for package: libgcj-4.4.7-23.el6.x86_64 --> Processing Dependency: libpango-1.0.so.0()(64bit) for package: libgcj-4.4.7-23.el6.x86_64 --> Processing Dependency: libgtk-x11-2.0.so.0()(64bit) for package: libgcj-4.4.7-23.el6.x86_64 --> Processing Dependency: libgdk_pixbuf-2.0.so.0()(64bit) for package: libgcj-4.4.7-23.el6.x86_64 --> Processing Dependency: libgdk-x11-2.0.so.0()(64bit) for package: libgcj-4.4.7-23.el6.x86_64 --> Processing Dependency: libcairo.so.2()(64bit) for package: libgcj-4.4.7-23.el6.x86_64 --> Processing Dependency: libatk-1.0.so.0()(64bit) for package: libgcj-4.4.7-23.el6.x86_64 --> Processing Dependency: libasound.so.2()(64bit) for package: libgcj-4.4.7-23.el6.x86_64 --> Processing Dependency: libXtst.so.6()(64bit) for package: libgcj-4.4.7-23.el6.x86_64 --> Processing Dependency: libXrandr.so.2()(64bit) for package: libgcj-4.4.7-23.el6.x86_64 --> Processing Dependency: libSM.so.6()(64bit) for package: libgcj-4.4.7-23.el6.x86_64 --> Processing Dependency: libICE.so.6()(64bit) for package: libgcj-4.4.7-23.el6.x86_64 ---> Package libproxy.x86_64 0:0.3.0-10.el6 will be installed --> Processing Dependency: libproxy-python = 0.3.0-10.el6 for package: libproxy-0.3.0-10.el6.x86_64 --> Processing Dependency: libproxy-bin = 0.3.0-10.el6 for package: libproxy-0.3.0-10.el6.x86_64 ---> Package pakchois.x86_64 0:0.4-3.2.el6 will be installed ---> Package perl-libwww-perl.noarch 0:5.833-5.el6 will be installed --> Processing Dependency: perl-HTML-Parser >= 3.33 for package: perl-libwww-perl-5.833-5.el6.noarch --> Processing Dependency: perl(HTML::Entities) for package: perl-libwww-perl-5.833-5.el6.noarch --> Processing Dependency: perl(Compress::Zlib) for package: perl-libwww-perl-5.833-5.el6.noarch ---> Package rpm-libs.x86_64 0:4.8.0-55.el6 will be updated ---> Package rpm-libs.x86_64 0:4.8.0-59.el6 will be an update ---> Package rpm-python.x86_64 0:4.8.0-55.el6 will be updated ---> Package rpm-python.x86_64 0:4.8.0-59.el6 will be an update ---> Package systemtap-runtime.x86_64 0:2.9-9.el6 will be installed ---> Package zip.x86_64 0:3.0-1.el6_7.1 will be installed --> Running transaction check ---> Package alsa-lib.x86_64 0:1.1.0-4.el6 will be installed ---> Package atk.x86_64 0:1.30.0-1.el6 will be installed ---> Package cairo.x86_64 0:1.8.8-6.el6_6 will be installed --> Processing Dependency: libpng12.so.0(PNG12_0)(64bit) for package: cairo-1.8.8-6.el6_6.x86_64 --> Processing Dependency: libpng12.so.0()(64bit) for package: cairo-1.8.8-6.el6_6.x86_64 --> Processing Dependency: libpixman-1.so.0()(64bit) for package: cairo-1.8.8-6.el6_6.x86_64 ---> Package gdk-pixbuf2.x86_64 0:2.24.1-6.el6_7 will be installed --> Processing Dependency: libjpeg.so.62(LIBJPEG_6.2)(64bit) for package: gdk-pixbuf2-2.24.1-6.el6_7.x86_64 --> Processing Dependency: libtiff.so.3()(64bit) for package: gdk-pixbuf2-2.24.1-6.el6_7.x86_64 --> Processing Dependency: libjpeg.so.62()(64bit) for package: gdk-pixbuf2-2.24.1-6.el6_7.x86_64 --> Processing Dependency: libjasper.so.1()(64bit) for package: gdk-pixbuf2-2.24.1-6.el6_7.x86_64 ---> Package gtk2.x86_64 0:2.24.23-9.el6 will be installed --> Processing Dependency: hicolor-icon-theme for package: gtk2-2.24.23-9.el6.x86_64 --> Processing Dependency: libcups.so.2()(64bit) for package: gtk2-2.24.23-9.el6.x86_64 --> Processing Dependency: libXinerama.so.1()(64bit) for package: gtk2-2.24.23-9.el6.x86_64 --> Processing Dependency: libXi.so.6()(64bit) for package: gtk2-2.24.23-9.el6.x86_64 --> Processing Dependency: libXfixes.so.3()(64bit) for package: gtk2-2.24.23-9.el6.x86_64 --> Processing Dependency: libXext.so.6()(64bit) for package: gtk2-2.24.23-9.el6.x86_64 --> Processing Dependency: libXdamage.so.1()(64bit) for package: gtk2-2.24.23-9.el6.x86_64 --> Processing Dependency: libXcursor.so.1()(64bit) for package: gtk2-2.24.23-9.el6.x86_64 --> Processing Dependency: libXcomposite.so.1()(64bit) for package: gtk2-2.24.23-9.el6.x86_64 ---> Package libICE.x86_64 0:1.0.6-1.el6 will be installed ---> Package libSM.x86_64 0:1.2.1-2.el6 will be installed ---> Package libXrandr.x86_64 0:1.5.1-1.el6 will be installed ---> Package libXtst.x86_64 0:1.2.3-1.el6 will be installed ---> Package libart_lgpl.x86_64 0:2.3.20-5.1.el6 will be installed ---> Package libproxy-bin.x86_64 0:0.3.0-10.el6 will be installed ---> Package libproxy-python.x86_64 0:0.3.0-10.el6 will be installed ---> Package pango.x86_64 0:1.28.1-11.el6 will be installed --> Processing Dependency: libthai >= 0.1.9 for package: pango-1.28.1-11.el6.x86_64 --> Processing Dependency: libthai.so.0(LIBTHAI_0.1)(64bit) for package: pango-1.28.1-11.el6.x86_64 --> Processing Dependency: libthai.so.0()(64bit) for package: pango-1.28.1-11.el6.x86_64 ---> Package perl-Compress-Zlib.x86_64 0:2.021-144.el6 will be installed --> Processing Dependency: perl(IO::Uncompress::Gunzip) >= 2.021 for package: perl-Compress-Zlib-2.021-144.el6.x86_64 --> Processing Dependency: perl(IO::Compress::Gzip::Constants) >= 2.021 for package: perl-Compress-Zlib-2.021-144.el6.x86_64 --> Processing Dependency: perl(IO::Compress::Gzip) >= 2.021 for package: perl-Compress-Zlib-2.021-144.el6.x86_64 --> Processing Dependency: perl(IO::Compress::Base::Common) >= 2.021 for package: perl-Compress-Zlib-2.021-144.el6.x86_64 --> Processing Dependency: perl(Compress::Raw::Zlib) >= 2.021 for package: perl-Compress-Zlib-2.021-144.el6.x86_64 ---> Package perl-HTML-Parser.x86_64 0:3.64-2.el6 will be installed --> Processing Dependency: perl(HTML::Tagset) >= 3.03 for package: perl-HTML-Parser-3.64-2.el6.x86_64 --> Processing Dependency: perl(HTML::Tagset) for package: perl-HTML-Parser-3.64-2.el6.x86_64 --> Running transaction check ---> Package cups-libs.x86_64 1:1.4.2-79.el6 will be installed ---> Package hicolor-icon-theme.noarch 0:0.11-1.1.el6 will be installed ---> Package jasper-libs.x86_64 0:1.900.1-22.el6 will be installed ---> Package libXcomposite.x86_64 0:0.4.3-4.el6 will be installed ---> Package libXcursor.x86_64 0:1.1.14-2.1.el6 will be installed ---> Package libXdamage.x86_64 0:1.1.3-4.el6 will be installed ---> Package libXext.x86_64 0:1.3.3-1.el6 will be installed ---> Package libXfixes.x86_64 0:5.0.3-1.el6 will be installed ---> Package libXi.x86_64 0:1.7.8-1.el6 will be installed ---> Package libXinerama.x86_64 0:1.1.3-2.1.el6 will be installed ---> Package libjpeg-turbo.x86_64 0:1.2.1-3.el6_5 will be installed ---> Package libpng.x86_64 2:1.2.49-2.el6_7 will be installed ---> Package libthai.x86_64 0:0.1.12-3.el6 will be installed ---> Package libtiff.x86_64 0:3.9.4-21.el6_8 will be installed ---> Package perl-Compress-Raw-Zlib.x86_64 1:2.021-144.el6 will be installed ---> Package perl-HTML-Tagset.noarch 0:3.20-4.el6 will be installed ---> Package perl-IO-Compress-Base.x86_64 0:2.021-144.el6 will be installed ---> Package perl-IO-Compress-Zlib.x86_64 0:2.021-144.el6 will be installed ---> Package pixman.x86_64 0:0.32.8-1.el6 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================================================================================== Package Arch Version Repository Size ================================================================================================================================================== Installing: autoconf noarch 2.63-5.1.el6 base 781 k automake noarch 1.11.1-4.el6 base 550 k bison x86_64 2.4.1-5.el6 base 637 k byacc x86_64 1.9.20070509-7.el6 base 48 k cscope x86_64 15.6-7.el6 base 136 k ctags x86_64 5.8-2.el6 base 147 k cvs x86_64 1.11.23-16.el6 base 712 k diffstat x86_64 1.51-2.el6 base 29 k doxygen x86_64 1:1.6.1-6.el6 base 2.4 M elfutils x86_64 0.164-2.el6 base 240 k flex x86_64 2.5.35-9.el6 base 285 k gcc-c++ x86_64 4.4.7-23.el6 base 4.7 M gcc-gfortran x86_64 4.4.7-23.el6 base 4.7 M gettext x86_64 0.17-18.el6 base 1.8 M git x86_64 1.7.1-9.el6_9 base 4.6 M indent x86_64 2.2.10-7.el6 base 115 k intltool noarch 0.41.0-1.1.el6 base 58 k libtool x86_64 2.2.6-15.5.el6 base 564 k patch x86_64 2.6-8.el6_9 base 91 k patchutils x86_64 0.3.1-3.1.el6 base 95 k rcs x86_64 5.7-37.el6 base 173 k rpm-build x86_64 4.8.0-59.el6 base 131 k subversion x86_64 1.6.11-15.el6_7 base 2.3 M swig x86_64 1.3.40-6.el6 base 1.1 M systemtap x86_64 2.9-9.el6 base 23 k Updating: binutils x86_64 2.20.51.0.2-5.48.el6 base 2.8 M gcc x86_64 4.4.7-23.el6 base 10 M Installing for dependencies: alsa-lib x86_64 1.1.0-4.el6 base 389 k atk x86_64 1.30.0-1.el6 base 195 k avahi-libs x86_64 0.6.25-17.el6 base 55 k cairo x86_64 1.8.8-6.el6_6 base 309 k cups-libs x86_64 1:1.4.2-79.el6 base 323 k gdb x86_64 7.2-92.el6 base 2.3 M gdk-pixbuf2 x86_64 2.24.1-6.el6_7 base 501 k gettext-devel x86_64 0.17-18.el6 base 155 k gettext-libs x86_64 0.17-18.el6 base 112 k gnutls x86_64 2.12.23-22.el6 base 389 k gtk2 x86_64 2.24.23-9.el6 base 3.2 M hicolor-icon-theme noarch 0.11-1.1.el6 base 40 k jasper-libs x86_64 1.900.1-22.el6 base 139 k kernel-devel x86_64 2.6.32-754.6.3.el6 updates 11 M libICE x86_64 1.0.6-1.el6 base 53 k libSM x86_64 1.2.1-2.el6 base 37 k libXcomposite x86_64 0.4.3-4.el6 base 20 k libXcursor x86_64 1.1.14-2.1.el6 base 28 k libXdamage x86_64 1.1.3-4.el6 base 18 k libXext x86_64 1.3.3-1.el6 base 35 k libXfixes x86_64 5.0.3-1.el6 base 17 k libXi x86_64 1.7.8-1.el6 base 38 k libXinerama x86_64 1.1.3-2.1.el6 base 13 k libXrandr x86_64 1.5.1-1.el6 base 25 k libXtst x86_64 1.2.3-1.el6 base 19 k libart_lgpl x86_64 2.3.20-5.1.el6 base 65 k libgcj x86_64 4.4.7-23.el6 base 19 M libgfortran x86_64 4.4.7-23.el6 base 268 k libjpeg-turbo x86_64 1.2.1-3.el6_5 base 174 k libpng x86_64 2:1.2.49-2.el6_7 base 182 k libproxy x86_64 0.3.0-10.el6 base 39 k libproxy-bin x86_64 0.3.0-10.el6 base 9.0 k libproxy-python x86_64 0.3.0-10.el6 base 9.1 k libstdc++-devel x86_64 4.4.7-23.el6 base 1.6 M libthai x86_64 0.1.12-3.el6 base 183 k libtiff x86_64 3.9.4-21.el6_8 base 346 k m4 x86_64 1.4.13-5.el6 base 278 k neon x86_64 0.29.3-3.el6_4 base 119 k pakchois x86_64 0.4-3.2.el6 base 21 k pango x86_64 1.28.1-11.el6 base 351 k perl-Compress-Raw-Zlib x86_64 1:2.021-144.el6 base 70 k perl-Compress-Zlib x86_64 2.021-144.el6 base 46 k perl-Error noarch 1:0.17015-4.el6 base 29 k perl-Git noarch 1.7.1-9.el6_9 base 29 k perl-HTML-Parser x86_64 3.64-2.el6 base 109 k perl-HTML-Tagset noarch 3.20-4.el6 base 17 k perl-IO-Compress-Base x86_64 2.021-144.el6 base 70 k perl-IO-Compress-Zlib x86_64 2.021-144.el6 base 136 k perl-URI noarch 1.40-2.el6 base 117 k perl-XML-Parser x86_64 2.36-7.el6 base 224 k perl-libwww-perl noarch 5.833-5.el6 base 390 k pixman x86_64 0.32.8-1.el6 base 243 k systemtap-client x86_64 2.9-9.el6 base 3.7 M systemtap-devel x86_64 2.9-9.el6 base 1.7 M systemtap-runtime x86_64 2.9-9.el6 base 206 k xz x86_64 4.999.9-0.5.beta.20091007git.el6 base 137 k xz-lzma-compat x86_64 4.999.9-0.5.beta.20091007git.el6 base 16 k zip x86_64 3.0-1.el6_7.1 base 259 k Updating for dependencies: cpp x86_64 4.4.7-23.el6 base 3.7 M libgcc x86_64 4.4.7-23.el6 base 104 k libgomp x86_64 4.4.7-23.el6 base 135 k libstdc++ x86_64 4.4.7-23.el6 base 296 k rpm x86_64 4.8.0-59.el6 base 906 k rpm-libs x86_64 4.8.0-59.el6 base 318 k rpm-python x86_64 4.8.0-59.el6 base 61 k Transaction Summary ================================================================================================================================================== Install 83 Package(s) Upgrade 9 Package(s) Total download size: 93 M Is this ok [y/N]:y
So far, you can use the Gcc compiler or make to compile c or c++ programs on your Linux system.
Check Core Development Tools Installation
If you want to check if the core development tools are installed successfully, you can try to check the version of GNU GCC, type the following command:
$ gcc --version $ g++ version
Outputs:
devops@devops-osetc:~$ gcc --version gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609 Copyright (C) 2015 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. devops@devops-osetc:~$ g++ --version g++ (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609 Copyright (C) 2015 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.
Compile a C Program with GCC Compiler
You can use the vi/vim text editor to create a file called fio.c, and then append the following lines:
#include<stdio.h> int main() { printf("Hello World!\n") return 0; }
Then executing the following command to compile and run this c profram, type:
$ gcc fio.c -o fio $ ./fio