Install Dev C++ Debian

Chipmunk is a simple, lightweight, fast and portable 2D rigid body physics library written in C. It's licensed under the unrestrictive, OSI approved MIT license. Its aim is to give 2D developers access the same quality of physics you find in newer 3D games. This package contains the development libraries and headers. Sudo apt-get install automake bison flex g git libboost-all-dev libevent-dev libssl-dev libtool make pkg-config Debian 7/Ubuntu 12 users need to manually install a more recent version of automake and (for C library and test support) boost.

How do I install gnu gcc compiler and related tools such as autoconf, automake, flex, c++ compiler, and bison on a CentOS 7 or Red Hat Enterprise Linux version 7 server? How can I install GCC (C and C++ Compiler) and development tools on a CentOS or RHEL 7?
You can setup a basic development environment with the following packages on a CentOS Enterprise Linux or Red Hat Enterprise Linux version 7:
Advertisements

CentOS / RHEL 7: Install GCC Package list

  1. autoconf
  2. automake
  3. binutils
  4. bison
  5. flex
  6. gcc (c compiler)
  7. gcc-c++ (c++ compiler)
  8. gettext
  9. libtool
  10. make
  11. patch
  12. pkgconfig
  13. redhat-rpm-config
  14. rpm-build
  15. rpm-sign

Installing GCC c and c++

Open the Terminal app and type the following commands.

Command to list groups on a CentOS / RHEL 7

Type the following yum command:
# yum group list
Sample outputs:
Another option:
# yum group list ids
Sample outputs:

Command to install GCC and Development Tools on a CentOS / RHEL 7 server

Type the following yum command as root user:
# yum group install 'Development Tools'
OR
$ sudo yum group install 'Development Tools'
If above command failed, try:
# yum groupinstall 'Development Tools'
Sample outputs:

Animated gif 01: Installing C & C++ and related packages on a CentOS and RHEL 7

A note about failing groupinstall on CentOS/RHEL 7.x

To install all the packages belonging to a package group called “Development Tools” use the following command:
# yum --setopt=group_package_types=mandatory,default,optional groupinstall 'Development Tools'
OR
# yum --setopt=group_package_types=mandatory,default,optional group install 'Development Tools'
The yum has changed in Red Hat Enterprise Linux 7/CentOS 7. The package group “Development Tools”” has only the optional packages which by default doesn’t get installed. So we will need to pass the option --setopt=group_package_types=mandatory,default,optional to install the optional packages too.

Verify your gcc installation on a CentOS / RHEL 7 server

Type the following command to see gcc location:

Type the following command to see gcc compiler version:

Test gcc C compiler with a sample foo.c program

Ubuntu install c++ dev tools

Create a file called foo.c as follows:

To compile foo.c into foo executable file, type:
$ cc foo.c -o foo
To execute foo program, type:

A note about install man pages on a CentOS 6/7

Use the yum command as follows:
$ ## [ CentOS 7 ] ##
$ sudo yum install man-pages man-db man
$ ## [ CentOS 6.x ] ##
$ sudo yum install man man-pages

Conclusion

You learned how to install GNU c, c++ compilers and releated tools on a CentOS or Red Hat Enterprise Linux version 7.x. See GCC site for more info.

This entry is 3 of 13

Install Dev C++ Windows 10

in the

Install Dev C++ Debian Version

Linux GNU/GCC Compilers Tutorial series. Keep reading the rest of the series:

Dev C++ Online

  1. CentOS / RHEL 7: Install GCC (C and C++ Compiler) and Development Tools

ADVERTISEMENTS