LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   C preprocessor fails sanity check (https://www.linuxquestions.org/questions/programming-9/c-preprocessor-fails-sanity-check-785961/)

sepidev 01-31-2010 04:35 AM

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

neonsignal 01-31-2010 04:40 AM

You may not have the C compiler installed.

Install the "build-essential" package.

knudfl 01-31-2010 07:43 AM

Welcome to LQ.

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

.. will provide the missing files.

..... Good luck .. .. :) ..
.....

sepidev 02-01-2010 02:49 AM

thanx guys.
i tried all these solutions, but no chance.
Eventually i had to reinstall my ubuntu.

but thanx again.


All times are GMT -5. The time now is 10:25 PM.