If you get errors which representing the missing of GNU C / C++ compiler on your Linux server, you can simply install it by the help of Linux package installer like YUM, Apt-get etc.
Installation of GNU C / C++ compiler on CentOS/Redhat
Here, you can use the YUM package manager for installation.
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
To install the gcc and g++ compilers, you will need the 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.
That’s it 🙂
PHP compilation errors.
Compiling PHP is not an easy process by comparing with the installation of PHP using package managers like Yum or Apt-get.
The main advantage of compiling PHP from its source code is the customisation. That means you can customise your own PHP with custom modules.
There’re a lot of dependencies required for the compilation of PHP from its source code. By using package manager the dependencies are automatically detected and install with the corresponding package. Read More..