error: C++ preprocessor "/lib/cpp" fails sanity check
I use debian and i try to install fluxbox 0.9.9. When i type ./configure, after few seconds i can see only this:
checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... gcc3 checking for a BSD-compatible install... /usr/bin/install -c checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking for ld used by GCC... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for /usr/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -B checking for a sed that does not truncate output... /bin/sed checking whether ln -s works... yes checking how to recognise dependent libraries... pass_all checking command to parse /usr/bin/nm -B output... ok checking how to run the C++ preprocessor... /lib/cpp configure: error: C++ preprocessor "/lib/cpp" fails sanity check See `config.log' for more details. I searched the internet and saw many forums whith this problem, but i can't check it. What can i do? Thanks for some help!!! |
RE: error: C++ preprocessor "/lib/cpp" fails sanity check
I had the same issue. I did an
apt-get install g++ and it fixed the problem but now I run into "XOpenDisplay not found" I hope that helps. |
Hi,
Please install rpm gcc-c++ Thanks Raj. |
If you use ubuntu, run $sudo aptitude, find g++ in the noninstalled packages list, install g++, g++ 3.x and 4.x, that fixed my installation.
|
On CentOS and Red Hat this fixed the issue
Hi there, I had the same problem on CentOs,
code: yum install gcc-c++ And everything was OK after that . |
All times are GMT -5. The time now is 02:31 PM. |