aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: CVS Compile on x86_64 Machine  (Read 4643 times)

apollyon

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
CVS Compile on x86_64 Machine
« 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
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: CVS Compile on x86_64 Machine
« Reply #1 on: August 12, 2005, 10:40:22 AM »

Seems like configure cannot find your C++ compiler.
Logged
concordia cum veritate

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
RE: CVS Compile on x86_64 Machine
« Reply #2 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!
Logged

apollyon

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
Re: CVS Compile on x86_64 Machine
« Reply #3 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...
Logged

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: CVS Compile on x86_64 Machine
« Reply #4 on: August 12, 2005, 09:35:07 PM »

Attach your config.log file, or look up the problem in that file yourself. ;)
Logged

apollyon

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
Re: CVS Compile on x86_64 Machine
« Reply #5 on: August 13, 2005, 01:13:36 AM »

Here's my config.log....
Logged

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: CVS Compile on x86_64 Machine
« Reply #6 on: August 13, 2005, 01:48:01 AM »

There's your problem:
Quote
./configure: line 2115: g++: command not found
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: CVS Compile on x86_64 Machine
« Reply #7 on: August 13, 2005, 03:44:24 PM »

You lack the c++ part of the compiler.

So, try:

$ apt-get install gcc-c++

Cheers!
Logged

apollyon

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
Re: CVS Compile on x86_64 Machine
« Reply #8 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.
Logged