LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-11-2004, 01:04 AM   #1
marek345
LQ Newbie
 
Registered: Jun 2004
Location: slovakia
Posts: 3

Rep: Reputation: 0
Question 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!!!
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 04-30-2006, 03:16 PM   #2
Nazzus
LQ Newbie
 
Registered: Apr 2006
Posts: 1

Rep: Reputation: 0
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.
 
Old 10-11-2006, 10:18 AM   #3
rajayoganand
LQ Newbie
 
Registered: Oct 2006
Posts: 5

Rep: Reputation: 1
Hi,

Please install rpm gcc-c++

Thanks
Raj.
 
2 members found this post helpful.
Old 06-28-2007, 09:04 PM   #4
euler13
LQ Newbie
 
Registered: Apr 2004
Location: China
Distribution: slackware
Posts: 8

Rep: Reputation: 0
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.
 
Old 11-06-2008, 09:49 AM   #5
manuken
LQ Newbie
 
Registered: Jul 2008
Posts: 3

Rep: Reputation: 0
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 .
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
configure: error: C++ preprocessor "/lib/cpp" fails sanity check Mugatu Linux - Software 54 11-09-2017 07:34 AM
error: C preprocessor "/lib/cpp" fails sanity check Master Fox Linux - Software 0 10-14-2004 03:39 PM
configure: error: C++ preprocessor "/lib/cpp" fails sanity check HELP Ckesey Linux - Newbie 3 10-04-2004 01:58 PM
configure: error: C++ preprocessor "/lib/cpp" fails sanity check HELP Ckesey Linux - Software 0 10-04-2004 09:49 AM
configure: error: C++ preprocessor "/lib/cpp" fails sanity check raela Linux - Software 6 03-16-2004 05:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration