LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-14-2004, 08:06 PM   #16
januismer
LQ Newbie
 
Registered: Oct 2004
Posts: 4

Rep: Reputation: 0

I had the exact same problem running Mandrake 10.1. Performing the link above cured my problem too!

THANKS!
 
Old 04-12-2005, 09:40 PM   #17
ltorres321
LQ Newbie
 
Registered: Apr 2005
Location: Miami
Distribution: Fedora 3
Posts: 3

Rep: Reputation: 0
Same error

I am trying to install wine I get this error I installed the gcc but I can not find the configure file to set up the g++ is that another download all together.

checking for the directory containing the Wine tools... $(TOPOBJDIR)
checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
 
Old 04-12-2005, 09:43 PM   #18
ltorres321
LQ Newbie
 
Registered: Apr 2005
Location: Miami
Distribution: Fedora 3
Posts: 3

Rep: Reputation: 0
checking how to run the C preprocessor... /lib/cpp configure: error: C preprocessor "

Quote:
Originally posted by Tinkster
That means that you didn't install your C++ compiler.

Same error

I am trying to install wine I get this error I installed the gcc but I can not find the configure file to set up the g++ is that another download all together.

checking for the directory containing the Wine tools... $(TOPOBJDIR)
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 am running Fedora 3
__________________
Leo Torres





Cheers,
Tink
 
Old 06-08-2005, 05:41 PM   #19
paul62
Member
 
Registered: Mar 2004
Location: glenview illinois
Distribution: fedora core 7
Posts: 458

Rep: Reputation: 30
Coudl anyone tell me what the command is to install the c++ compliler from the installation disk of slackware 10.0? I am having the same problem with timidity

Last edited by paul62; 06-08-2005 at 05:50 PM.
 
Old 06-09-2005, 04:20 AM   #20
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
The package you need to install is called gcc-c++. You can install it with installpkg e.g.
Code:
#installpkg gcc-c++
You can also download the package from the Slackware website, in the packages section.
 
Old 06-22-2005, 12:52 PM   #21
ghodkiller
Member
 
Registered: Jan 2005
Distribution: SuSE / Mandrake
Posts: 48

Rep: Reputation: 15
what package should exactly be installed ?
i`ve installed :

Code:
installpkg gcc-g++-3.3.5-i486-1.tgz
Installing package gcc-g++-3.3.5-i486-1...
PACKAGE DESCRIPTION:
gcc-g++: gcc-g++ (C++ for GCC)
gcc-g++:
gcc-g++: C++ support for the GNU Compiler Collection.
gcc-g++:
gcc-g++: This package contains those parts of the compiler collection needed to
gcc-g++: compile C++ code.  The base gcc package is also required.
gcc-g++:
Executing install script for gcc-g++-3.3.5-i486-1...
and when i want to compile :
Code:
checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
there is no file or shortcut named cpp in "/lib/"

Using 2.6.11.2 (root@vector.linux.vnet) Slackware 10.1.0


i did:

Code:
swaret --remove gcc
swaret 1.6.2-1

Listing installed Packages matching Keyword: gcc...
gcc-3.3.5-i486-1
gcc-g++-3.3.5-i486-1
gcc-g77-3.3.5-i486-1
gcc-gnat-3.3.5-i486-1
gcc-objc-3.3.5-i486-1

Remove gcc-3.3.5-i486-1? (y/n/Q): [y]
Remove gcc-g++-3.3.5-i486-1? (y/n/Q): [y]
Remove gcc-g77-3.3.5-i486-1? (y/n/Q): [y]
Remove gcc-gnat-3.3.5-i486-1? (y/n/Q): [y]
Remove gcc-objc-3.3.5-i486-1? (y/n/Q): [y]

=> Removing gcc-3.3.5-i486-1... DONE!
=> Removing gcc-g++-3.3.5-i486-1... DONE!
=> Removing gcc-g77-3.3.5-i486-1... DONE!
=> Removing gcc-gnat-3.3.5-i486-1... DONE!
=> Removing gcc-objc-3.3.5-i486-1... DONE!



swaret --install gcc
swaret 1.6.2-1

Listing available Packages matching Keyword: gcc...
gcc-3.3.5-i486-1 (4550 kB)
gcc-g++-3.3.5-i486-1 (4571 kB)
gcc-g77-3.3.5-i486-1 (2408 kB)
gcc-gnat-3.3.5-i486-1 (6054 kB)
gcc-java-3.3.5-i486-1 (10523 kB)
gcc-objc-3.3.5-i486-1 (1589 kB)

Install gcc-3.3.5-i486-1? (y/n/A/Q): [y]
Install gcc-g++-3.3.5-i486-1? (y/n/A/Q): [y]
Install gcc-g77-3.3.5-i486-1? (y/n/A/Q): [y]
Install gcc-gnat-3.3.5-i486-1? (y/n/A/Q): [y]
Install gcc-java-3.3.5-i486-1? (y/n/A/Q): [y]n
Install gcc-objc-3.3.5-i486-1? (y/n/A/Q): [y]
[ ftp://ftp.nluug.nl/pub/os/Linux/dist...ckware-current ]
### Fetching gcc-3.3.5-i486-1 (4550 kB)...
--- 4550 kB/4550 kB [TOTAL: 4550 kB/14603 kB] ~ 23 kB/s DONE!
=> <MD5CHECK> MD5 for Package gcc-3.3.5-i486-1 OK!
Package gcc-g++-3.3.5-i486-1 (4571 kB) found in: /var/swaret!
[ ftp://ftp.nluug.nl/pub/os/Linux/dist...ckware-current ]
### Fetching gcc-g77-3.3.5-i486-1 (2408 kB)...
--- 2408 kB/2408 kB [TOTAL: 6959 kB/14603 kB] ~ 10 kB/s DONE!
=> <MD5CHECK> MD5 for Package gcc-g77-3.3.5-i486-1 OK!
[ ftp://ftp.nluug.nl/pub/os/Linux/dist...ckware-current ]
### Fetching gcc-gnat-3.3.5-i486-1 (6054 kB)...
--- 6054 kB/6054 kB [TOTAL: 13014 kB/14603 kB] ~ 9 kB/s DONE!
=> <MD5CHECK> MD5 for Package gcc-gnat-3.3.5-i486-1 OK!
[ ftp://ftp.nluug.nl/pub/os/Linux/dist...ckware-current ]
### Fetching gcc-objc-3.3.5-i486-1 (1589 kB)...
--- 1589 kB/1589 kB [TOTAL: 14603 kB/14603 kB] ~ 4 kB/s DONE!
=> <MD5CHECK> MD5 for Package gcc-objc-3.3.5-i486-1 OK!
=> Installing gcc-3.3.5-i486-1... DONE!
=> Installing gcc-g++-3.3.5-i486-1... DONE!
=> Installing gcc-g77-3.3.5-i486-1... DONE!
=> Installing gcc-gnat-3.3.5-i486-1... DONE!
=> Installing gcc-objc-3.3.5-i486-1... DONE!

INFORMATION: Set DEPENDENCY to 0 in /etc/swaret.conf
             to disable Dependency Support.

%%% Verifying Dependencies... Libraries resolved successfully!
now there is a " /lib/cpp " , but i get the same error

Code:
./configure
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
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 g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
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 dependency style of gcc... gcc3
checking for a sed that does not truncate output... /usr/bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/i486-slackware-linux/bin/ld
checking if the linker (/usr/i486-slackware-linux/bin/ld) is GNU ld... yes
checking for /usr/i486-slackware-linux/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
Debian

Last edited by ghodkiller; 10-19-2008 at 08:22 AM.
 
Old 07-03-2005, 07:11 AM   #22
DaveQB
Member
 
Registered: Oct 2003
Location: Sydney, Australia.
Distribution: PCLinuxOS 2010.12, Debian Lenny
Posts: 387

Rep: Reputation: 38
Ok i just had the same issue trying to compile gphoto2

Looking in the logs i saw at lot of "Permission Denied"

So i re-ran ./configure as root.
All went swell.

This is on Vector 5.0.1 (Slack based)

Now running make ......
 
Old 07-13-2005, 08:49 AM   #23
angel115
Member
 
Registered: Jul 2005
Location: France / Ireland
Distribution: Debian mainly, and Ubuntu
Posts: 494

Rep: Reputation: 75
Hello there

I'm using Fedora core 4 and i'm getting the same g++ error. is it ok to install the pakage: gcc2.96-c++-2.96-0.83mdk.i586.rpm because this pakage seems to be for mandrake...
 
Old 07-13-2005, 09:15 AM   #24
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
Quote:
Originally posted by angel115
Hello there

I'm using Fedora core 4 and i'm getting the same g++ error. is it ok to install the pakage: gcc2.96-c++-2.96-0.83mdk.i586.rpm because this pakage seems to be for mandrake...
if the package is for Mandrake, then don't install it on FC4 since this may cause problems. You can install g++ on Fedora, by doing
Code:
#yum install gcc-c++

Last edited by reddazz; 01-22-2006 at 07:08 PM.
 
Old 07-13-2005, 10:04 AM   #25
angel115
Member
 
Registered: Jul 2005
Location: France / Ireland
Distribution: Debian mainly, and Ubuntu
Posts: 494

Rep: Reputation: 75
Quote:
Originally posted by reddazz
if the package is for Mandrake, then don;t install it on FC4 since this may cause problems. You can nstll g++on Fedora, by doing
Code:
#yum install gcc-c++
Thanks reddazz.

Just for feedback the command:
Code:
#yum install gcc-c++
work find.
 
Old 07-14-2005, 11:13 PM   #26
IndigoDarkwolf
LQ Newbie
 
Registered: Jul 2005
Posts: 2

Rep: Reputation: 0
I'm running Fedora Core 3.
You'd think that a "full install" would actually install... you know... everything. Guess not. I knew I shoulda done LFS...

And just for more positive, feedback, "yum install gcc-c++" worked great for me, too, in spite of everything else I've done to try and break my Linux install.
 
Old 09-16-2005, 06:29 PM   #27
MTT1k
Member
 
Registered: Jul 2005
Location: Bulgaria [Sofia city], bukston city[neighbourhood]
Distribution: Linux Slackware 10.2 [k 2.6.12.6]
Posts: 41

Rep: Reputation: 15
All the same

I'm with slackware 10.1 and when i was installing it i checked all possible C packages but the error is the same like his.


root@darchid:/home/mtt1k/bin/ctags-5.5.4# ./configure
Exuberant Ctags, version 5.5.4
Linux 2.6.12.6 #1 SMP Fri Sep 16 11:53:30 EEST 2005 i686
checking whether to install link to etags... yes
checking whether to install readtags object file... no
checking for gcc... gcc
checking for C compiler default output... 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 whether ln -s works... yes
checking for strip... strip
checking directory to use for temporary files... /tmp
checking whether #! works in shell scripts... yes
checking "for case-insensitive filenames"... no
checking selected sort method... external sort utility
checking for sort... yes
checking if sort accepts our command line... yes
checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check
See onfig.log' for more details.
root@darchid:/home/mtt1k/bin/ctags-5.5.4#


?????? What can you say I surly have gcc

Last edited by MTT1k; 09-16-2005 at 06:38 PM.
 
Old 09-17-2005, 02:02 AM   #28
DaveQB
Member
 
Registered: Oct 2003
Location: Sydney, Australia.
Distribution: PCLinuxOS 2010.12, Debian Lenny
Posts: 387

Rep: Reputation: 38
Just a wild guess

slapt-get install gcc-cpp

??

Also does /lib/cpp exist ??
 
Old 09-18-2005, 09:18 AM   #29
MTT1k
Member
 
Registered: Jul 2005
Location: Bulgaria [Sofia city], bukston city[neighbourhood]
Distribution: Linux Slackware 10.2 [k 2.6.12.6]
Posts: 41

Rep: Reputation: 15
Yes

/lib/cpp DOes exist and leads to /usr/bin/cpp


OK i will try to install gcc-cpp vai slapt-get but firt i must edit slapt-getrc .... What is the new locations of the dir where are the Current slackware files on the Volkerdings server. There was a problem se http://slackware.it
I will search
 
Old 12-16-2005, 11:34 PM   #30
Otpadnick
LQ Newbie
 
Registered: Dec 2005
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by exeon
I know this shouldn't be right.
gcc was already installed on my machine but I still got:
C++ preprocessor "/lib/cpp" fails sanity check
I looked at config.log and it said something like:
cc1plus command not found

i found cc1
/usr/lib/gcc/i586-mandrake-linux-gnu/3.4.1/cc1
so I linked it in /usr/bin
ln -s /usr/lib/gcc/i586-mandrake-linux-gnu/3.4.1/cc1 cc1plus

voila: all working

Mandrake 10.1 Community Edition
Athlon XP 1500+
Chipset SIS 735
Hah, great stuff man. It worked with me the same way. There is obviously some misslinking in Mandrake 10.1 regarding to g++, particulary cc1plus.
 
  


Reply

Tags
cpp


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
error: C++ preprocessor "/lib/cpp" fails sanity check marek345 Linux - Software 4 11-06-2008 10:49 AM
ardour wont configure: configure: error: C preprocessor "/lib/cpp" fails sanity check disciple061 Linux - Software 4 01-22-2005 01:35 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 09:36 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration