configure: error: C++ preprocessor "/lib/cpp" fails sanity check
Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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
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
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
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.
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...
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
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
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.
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#
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.