Old 5th March 2007, 22:24   #1
fc*uk
Moderator
 
fc*uk's Avatar
 
Join Date: Dec 2005
Location: Atlantic Beach
Posts: 8,127
C Compiler will die

OM. I am using ubuntu 6.10 and am trying to do an install from source. When I do that, I get:

shaun@Freedom:~/MuSE/MuSE-0.9$ ./configure
checking build system type... i686-pc-linux-gnulibc1
checking host system type... i686-pc-linux-gnulibc1
checking target system type... i686-pc-linux-gnulibc1
checking whether make sets $(MAKE)... yes
checking whether build environment is sane... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for gawk... no
checking for mawk... mawk
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking for C compiler default output... configure: error: C compiler cannot create executables


I looked at config.log and it tell sme no more additional information. The only thing I can come up with is that maybe glibc or kernel headers are not installed.

Installed the kernel headers and got the same error.

Started on glibc ... and then stopped. Checked synaptic and the libs are installed.

So ... that officially ran me out of ideas.

Can anyone help a poo foo out here? I have never run into this before....
fc*uk is offline   Reply With Quote
Old 6th March 2007, 00:18   #2
k_rock923
\m/
(Forum King)
 
k_rock923's Avatar
 
Join Date: Jul 2003
Location: /bin/bash
Posts: 7,850
Send a message via AIM to k_rock923
apt-get install libc6-dev

If that doesn't solve it, what version of gcc are you running? Can you confirm that a really simple C program will compile?

code:

#include<stdio.h>

int
main( void )
{
printf( "The compiler is working\n");
return 0;
}


Never underestimate the bandwidth of a station wagon full of tapes hurtling down the highway.
k_rock923 is offline   Reply With Quote
Old 6th March 2007, 01:10   #3
fc*uk
Moderator
 
fc*uk's Avatar
 
Join Date: Dec 2005
Location: Atlantic Beach
Posts: 8,127
k_rock... yes, libc6-dev solved that problem.

Now I /lib/cpp fails sanity check, which is I remember correctly should mean that I need to get g++ installed.

With the other distros I have used, all these were installed by default. Why on earth were they taken out of ubuntu?
fc*uk is offline   Reply With Quote
Old 6th March 2007, 01:14   #4
k_rock923
\m/
(Forum King)
 
k_rock923's Avatar
 
Join Date: Jul 2003
Location: /bin/bash
Posts: 7,850
Send a message via AIM to k_rock923
They weren't taken out per se. It's just that not too many developers run Ubuntu.

Never underestimate the bandwidth of a station wagon full of tapes hurtling down the highway.
k_rock923 is offline   Reply With Quote
Old 6th March 2007, 01:17   #5
fc*uk
Moderator
 
fc*uk's Avatar
 
Join Date: Dec 2005
Location: Atlantic Beach
Posts: 8,127
Well, I guess you do have a fairly valid point there....
fc*uk is offline   Reply With Quote
Old 6th March 2007, 02:19   #6
mikm
Major Dude
 
mikm's Avatar
 
Join Date: May 2001
Location: somewhere else
Posts: 1,255
I'd install build-essential if you haven't already

powered by C₂H₅OH
mikm is offline   Reply With Quote
Old 6th March 2007, 17:59   #7
zootm
Forum King
 
zootm's Avatar
 
Join Date: Jan 2002
Location: the nether reaches of bonnie scotland
Posts: 13,375
Quote:
Originally posted by fc*uk
With the other distros I have used, all these were installed by default. Why on earth were they taken out of ubuntu?
Because you shouldn't need to compile stuff yourself. This is the same reason that Windows doesn't ship with Visual Studio Express.

Quote:
Originally posted by mikm
I'd install build-essential if you haven't already
That's the one, yeah. That'll install the compilers and main libraries, after that you just need to know the specific "lib*" packages for whatever you're compiling.

zootm is offline   Reply With Quote
Old 6th March 2007, 18:54   #8
fc*uk
Moderator
 
fc*uk's Avatar
 
Join Date: Dec 2005
Location: Atlantic Beach
Posts: 8,127
the ubuntu .deb for MuSE streamer is only setup to support ogg, though the application will also support mp3.

To get mp3 support, you need to compile MuSE from source....

Usually, I have no problem compiling from source... but since all of those packages were pulled with no reference to where they went it was, well, challenging.

I was also thrown some make install error on MuSE that I need to find the time to get sorted.
fc*uk is offline   Reply With Quote
Old 6th March 2007, 19:19   #9
zootm
Forum King
 
zootm's Avatar
 
Join Date: Jan 2002
Location: the nether reaches of bonnie scotland
Posts: 13,375
Either you've got something wrong, or MuSE is phenomenally poorly written (I'm happy to accept the latter as likely). why the hell would they statically link all of the codecs?

zootm is offline   Reply With Quote
Old 6th March 2007, 19:43   #10
fc*uk
Moderator
 
fc*uk's Avatar
 
Join Date: Dec 2005
Location: Atlantic Beach
Posts: 8,127
I'll side with you and agree that MuSE is poorly written.

Eventhough I had the ogg and mp3 codecs, I had to grab all of those and compile from source because the compile script could not find any of them. I could not figure out where in the script the paths were set to, so I removed the installed ones and compiled the others from source.

Additionally, another thing that irked me is the fact that if either the mp3 or ogg codec is missing, the configure script dies in error and there was no easy/apparent way to me to make it move on (I really do not like ogg and hate having it around, so I tried to get it to go without those libs, with no luck at all).

It was happy then.
fc*uk is offline   Reply With Quote
Old 6th March 2007, 20:37   #11
zootm
Forum King
 
zootm's Avatar
 
Join Date: Jan 2002
Location: the nether reaches of bonnie scotland
Posts: 13,375
Ah, sounds like you just didn't know how to tell it where to look for the libraries. There was probably a flag for configure which allowed you to exclude Vorbis support, too.

zootm is offline   Reply With Quote
Old 6th March 2007, 21:20   #12
dieting
Junior Member
 
Join Date: Jan 2007
Posts: 5
check the ubuntu forums website:

http://www.ubuntuforums.org/
dieting is offline   Reply With Quote
Old 6th March 2007, 21:34   #13
fc*uk
Moderator
 
fc*uk's Avatar
 
Join Date: Dec 2005
Location: Atlantic Beach
Posts: 8,127
yeah. I was looking through everything fairly quickly, so there is a good chance that I missed it....
fc*uk is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Community Center > General Discussions

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump