LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-31-2010, 04:35 AM   #1
sepidev
LQ Newbie
 
Registered: Jan 2010
Posts: 4

Rep: Reputation: 0
C preprocessor fails sanity check


Hi guys.

Recently, every time I try to compile an app from its source code, after issuing the ./configure command I get this message:

configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.

I check /lib/cpp but there is not directory named /cpp under /lib

this problem occurs on all source packages.

i use ubuntu ver 9.10
kernel ver 2.6.17
 
Old 01-31-2010, 04:40 AM   #2
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Bookworm (Fluxbox WM)
Posts: 1,391
Blog Entries: 54

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
You may not have the C compiler installed.

Install the "build-essential" package.
 
Old 01-31-2010, 07:43 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ.

sudo apt-get install g++ linux-libc-dev libc6-dev

.. will provide the missing files.

..... Good luck .. .. ..
.....
 
Old 02-01-2010, 02:49 AM   #4
sepidev
LQ Newbie
 
Registered: Jan 2010
Posts: 4

Original Poster
Rep: Reputation: 0
thanx guys.
i tried all these solutions, but no chance.
Eventually i had to reinstall my ubuntu.

but thanx again.
 
  


Reply

Tags
check, sanity



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
GCC fails to compile - Chapter 6.14 - C preprocessor "/lib/cpp" fails sanity check jaydoc Linux From Scratch 1 01-28-2009 05:17 PM
error: C preprocessor "/lib/cpp" fails sanity check Virtuality Debian 13 01-12-2008 04:37 AM
C Preprocessor fails sanity check? Tux-Slack Slackware 9 06-02-2007 03:54 AM
error: C++ preprocessor "/lib/cpp" fails sanity check i.you Linux - Software 3 03-06-2007 02:24 AM
configure: error: C++ preprocessor fails sanity check Guitarist88 Linux - Newbie 1 08-13-2004 03:23 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:30 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