configure: error: C++ preprocessor "/lib/cpp" fails sanity check

configure: error: C++ preprocessor "/lib/cpp" fails sanity checkn in Ubuntu

Error while compiling a package as mentioned above

Solution:

run this command for resolution

sudo aptitude update
sudo aptitude install build-essential