aMule Forum
English => Compilation problems => Topic started by: apollyon on August 12, 2005, 08:00:04 AM
-
Hoping for some help compiling aMule CVS on Mandriva x86_64 linux.
I realize that some things are different on this system (/lib64) for example, but many other programs seem to compile okay using the default system values.
Running ./configure on aMule though reveals this:
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking for C++ compiler default output file name... configure: error: C++ compiler cannot create executables
See `config.log' for more details.
Now perhaps I need to set compile flags, etc. but I'm not that sure of what to do at this stage. Help would be appreciated.
jason
-
Seems like configure cannot find your C++ compiler.
-
apollyon,
Originally posted by apollyon
Hoping for some help compiling aMule CVS on Mandriva x86_64 linux.
I realize that some things are different on this system (/lib64) for example, but many other programs seem to compile okay using the default system values.
Well, from the configure output, I would say that you do not have a compiler installed. But you say that other programs do compile... Weird.
Originally posted by apollyon
Now perhaps I need to set compile flags, etc. but I'm not that sure of what to do at this stage. Help would be appreciated.
Try as root:
$ apt-get update && apt-get install gcc
And try to compile again.
Cheers!
-
No its all installed... check this output from a (successful) compilation of gaim-1.5.0
[apollyon@apollyon gaim-1.5.0]$ ./configure
checking build system type... x86_64-redhat-linux-gnu
checking host system type... x86_64-redhat-linux-gnu
checking target system type... x86_64-redhat-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for sed... /bin/sed
checking for gcc... gcc
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 gcc accepts -g... yes
checking for gcc option to accept ANSI C...
-
Attach your config.log file, or look up the problem in that file yourself. ;)
-
Here's my config.log....
-
There's your problem:
./configure: line 2115: g++: command not found
-
You lack the c++ part of the compiler.
So, try:
$ apt-get install gcc-c++
Cheers!
-
D'oh. I can't believe it was that simple. Since gaim compiled without a hitch I just assumed all the compilers were installed. Damn! Sorry for wasting your time with a simple error like that one.
Thanks for all that chimed in.