Install-gcc-gnu-c-c-compiler-linux

If you are getting errors like missing of GNU C / C++ compiler on server. To fix you just need to install with help of Linux package installer like YUM, Apt-get etc.

Installation of GNU C / C++ compiler on CentOS

Use following command

yum install gcc gcc-c++ autoconf automake

Installation of GNU C / C++ compiler on Ubuntu/Debian

Here, you can use apt-get command instead of YUM.

 sudo apt-get install build-essential 

On ubuntu for installing gcc and g++ compilers, you just need to install build-essential package. This will also install GNU make.

build-essential contains a list of packages which are essential for building Ubuntu packages including gcc compiler, make and other required tools.

Leave a Reply

Your email address will not be published. Required fields are marked *