Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 06-11-2004, 02:04 AM   #1
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!!!
Old 04-30-2006, 04:16 PM   #2
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, 11:18 AM   #3
LQ Newbie
Registered: Oct 2006
Posts: 5

Rep: Reputation: 0

Please install rpm gcc-c++

1 members found this post helpful.
Old 06-28-2007, 10:04 PM   #4
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, 10:49 AM   #5
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,


yum install gcc-c++

And everything was OK after that .


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 52 05-31-2012 11:27 AM
error: C preprocessor "/lib/cpp" fails sanity check Master Fox Linux - Software 0 10-14-2004 04:39 PM
configure: error: C++ preprocessor "/lib/cpp" fails sanity check HELP Ckesey Linux - Newbie 3 10-04-2004 02:58 PM
configure: error: C++ preprocessor "/lib/cpp" fails sanity check HELP Ckesey Linux - Software 0 10-04-2004 10:49 AM
configure: error: C++ preprocessor "/lib/cpp" fails sanity check raela Linux - Software 6 03-16-2004 06:59 PM

All times are GMT -5. The time now is 06:51 PM.

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