aMule Forum

English => Compilation problems => Topic started by: apollyon on August 12, 2005, 08:00:04 AM

Title: CVS Compile on x86_64 Machine
Post 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
Title: Re: CVS Compile on x86_64 Machine
Post by: GonoszTopi on August 12, 2005, 10:40:22 AM
Seems like configure cannot find your C++ compiler.
Title: RE: CVS Compile on x86_64 Machine
Post by: phoenix on August 12, 2005, 01:00:37 PM
apollyon,

Quote
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.

Quote
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!
Title: Re: CVS Compile on x86_64 Machine
Post by: apollyon on August 12, 2005, 09:23:42 PM
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...
Title: Re: CVS Compile on x86_64 Machine
Post by: Xaignar on August 12, 2005, 09:35:07 PM
Attach your config.log file, or look up the problem in that file yourself. ;)
Title: Re: CVS Compile on x86_64 Machine
Post by: apollyon on August 13, 2005, 01:13:36 AM
Here's my config.log....
Title: Re: CVS Compile on x86_64 Machine
Post by: Xaignar on August 13, 2005, 01:48:01 AM
There's your problem:
Quote
./configure: line 2115: g++: command not found
Title: Re: CVS Compile on x86_64 Machine
Post by: phoenix on August 13, 2005, 03:44:24 PM
You lack the c++ part of the compiler.

So, try:

$ apt-get install gcc-c++

Cheers!
Title: Re: CVS Compile on x86_64 Machine
Post by: apollyon on August 14, 2005, 08:22:38 PM
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.