If you having trouble compiling any application manually using “configure” , here simple fix for this error.
Error ::
checking whether we are using the GNU C++ compiler... nochecking whether g++ accepts -g... nochecking how to run the C++ preprocessor... /lib/cppconfigure: error: C++ preprocessor "/lib/cpp" fails sanity checkSee `config.log' for more details.
Solution::
- Centos/Fedora/RHEL
yum install gcc gcc-cpp gcc-c++
- Ubuntu/Debain
apt-get install gcc gcc-cpp gcc-c++