Archive

Posts Tagged ‘error: C++ preprocessor “/lib/cpp” fails sanity check’

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

April 19th, 2009 4 comments

Hello,

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... no
checking whether g++ accepts -g... no
checking how to run the C++ preprocessor... /lib/cpp
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `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++

Regards

AlexP