[NTLUG:Discuss] configure: error: C++ preprocessor "/lib/cpp" fails sanity check

Kevin Brannen kbrannen at pwhome.com
Tue Feb 8 20:30:57 CST 2005


Terry wrote:

>When trying to run ./configure   on kiwimanager I get error:
>checking how to run the C++ preprocessor... /lib/cpp
>configure: error: C++ preprocessor "/lib/cpp" fails sanity check
>
>(I tried it on another  application, kifi, and did same thing.)
>
>Any help most appreciated!  :)
>
>config.log follows:
>
>
>This file contains any messages produced by compilers while
>running configure, to aid debugging if configure makes a mistake.
>
>It was created by configure, which was
>generated by GNU Autoconf 2.53.  Invocation command line was
>
>  $ ./configure
>
>## --------- ##
>## Platform. ##
>## --------- ##
>
>...
>configure:2852: checking dependency style of gcc
>configure:2914: result: gcc3
>configure:2925: checking how to run the C preprocessor
>configure:2951: gcc -E  conftest.c
>configure:2957: $? = 0
>configure:2984: gcc -E  conftest.c
>configure:2980:28: ac_nonexistent.h: No such file or directory
>configure:2990: $? = 1
>configure: failed program was:
>#line 2979 "configure"
>#include "confdefs.h"
>#include <ac_nonexistent.h>
>...
>configure:3201: checking for g++
>configure:3230: result: no
>configure:3201: checking for c++
>configure:3230: result: no
>configure:3201: checking for gpp
>configure:3230: result: no
>configure:3201: checking for aCC
>configure:3230: result: no
>configure:3201: checking for CC
>configure:3230: result: no
>configure:3201: checking for cxx
>configure:3230: result: no
>configure:3201: checking for cc++
>configure:3230: result: no
>configure:3201: checking for cl
>configure:3230: result: no
>configure:3201: checking for FCC
>configure:3230: result: no
>configure:3201: checking for KCC
>configure:3230: result: no
>configure:3201: checking for RCC
>configure:3230: result: no
>configure:3201: checking for xlC_r
>configure:3230: result: no
>configure:3201: checking for xlC
>configure:3230: result: no
>configure:3243: checking for C++ compiler version
>configure:3246: g++ --version </dev/null >&5
>./configure: line 1: g++: command not found
>  
>
...

/lib/cpp is not your real problem.  You're missing g++, and all of it's 
files.  OK, you might be missing gcc too, which would include cpp, but 
until you get a C++ compiler that it recognizes, you'll never get 
anywhere. :-)  So make sure you have gcc installed, if not, do so; and 
install g++.

HTH,
Kevin




More information about the Discuss mailing list