-   Linux - Newbie (
-   -   ./configure fails because gcc can't create executables? (

anachron 03-01-2005 10:26 PM

./configure fails because gcc can't create executables?
About in January, I installed Mandrake 10.1 community, and because I'm inexperienced I haven't put any additional programs on it or made changes to the default setup. Today I tried to compile the Tux Racer source code and it failed. I thought g++ was part of gcc and was included in all standard Linux distributions. Is the problem indeed that I'm missing g++? Is it some permissions thing? Any help would be appreciated. It seems simple, but I don't know where to start.



[keldath@localhost tuxracer-0.61]$ ./configure
creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... missing
checking for working autoconf... found
checking for working automake... missing
checking for working autoheader... found
checking for working makeinfo... found
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for c++... no
checking for g++... no
checking for gcc... gcc
checking whether the C++ compiler (gcc  ) works... no
configure: error: installation or configuration problem: C++ compiler cannot create executables.

Matir 03-01-2005 10:31 PM

It looks like you need the C++ development tools, not just C. I personally thought they usually came together, but it looks like it's not the case here. Usually g++ is what you need.

anachron 03-01-2005 10:42 PM

Apologies if this is a silly question, but where can I get just g++ by itself?

btmiller 03-02-2005 12:07 AM

Install the g++ RPM that came with RH9.

All times are GMT -5. The time now is 02:55 PM.