I you are trying to compile software on a new system, and you get this error:
checking how to run the C++ preprocessor... /lib/cpp
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.

Then you need to install the gcc-c++ compiler:
# yum install gcc-c++
or
# sudo apt-get install gcc-c++

Installing gpp or gcc themselves is not enough.

You May Also Like

PowerDNS flexible, fast DNS Server

I’ve recently been testing/installing PowerDNS for a web hosting provider. Man am…

Remote Unattended OS installs – Linux and Windows!

The technology has been around for a while to do unattended OS…

Ubuntu Server in Place Network Upgrade From 8.10 to 9.04

It is easy to do an in-place upgrade of Ubuntu Server from…

How to Turn PHP into an RPM The Easy Way with FPM

So you have a custom PHP binary that you wish to distribute…