Sanity check failure

Few times I faced the problem while running configure scripts that were telling me:

checking how to run the C++ preprocessor... /lib/cpp
configure: error: C++ preprocessor \"/lib/cpp\" fails sanity check

since I am not in the mood of searching google for the solution every time this happens I decided to post a reminder here.

The idea is that \”gcc-c++\” (or similar thing I believe) have to be installed. Anyway – I solved problem by running:

apt-get install gcc gcc-c++