LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-30-2006, 10:17 PM   #1
Cold Coffee
LQ Newbie
 
Registered: May 2006
Location: Portland Oregon
Distribution: Kubuntu at home, Fedora Core 6 at school
Posts: 10

Rep: Reputation: 1
I've installed the GCC packages but C programs still won't compile!


For some reason, Kubuntu dosen't come with gcc, so I used Adept to install it, but when I run ./configure on any C program it detects GCC but then says it can't compile. I'm wondering if I'm missing an important library or if I'm just running my command wrong. I've read the tutorial on compiling programs and I've read the INSTALL file on all the programs I've tried to install, no luck.

Any ideas?
 
Old 05-30-2006, 10:38 PM   #2
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
Quote:
Originally Posted by Cold Coffee
For some reason, Kubuntu dosen't come with gcc, so I used Adept to install it, but when I run ./configure on any C program it detects GCC but then says it can't compile. I'm wondering if I'm missing an important library or if I'm just running my command wrong. I've read the tutorial on compiling programs and I've read the INSTALL file on all the programs I've tried to install, no luck.

Any ideas?
hi,
i'm bit confused. Are you trying to compile a 'c' language program or trying to install some package ???

regards
 
Old 05-30-2006, 11:06 PM   #3
Cold Coffee
LQ Newbie
 
Registered: May 2006
Location: Portland Oregon
Distribution: Kubuntu at home, Fedora Core 6 at school
Posts: 10

Original Poster
Rep: Reputation: 1
I'm trying to install programs from source. GCC won't do it for some reason.
 
Old 05-30-2006, 11:15 PM   #4
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
Better install GCC again

regards
 
Old 05-30-2006, 11:28 PM   #5
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
./configure is succesfull? If not, post output of it. If it is succesfull, post output of make.
From here, we can not see what goes wrong
 
Old 05-31-2006, 12:58 AM   #6
Cold Coffee
LQ Newbie
 
Registered: May 2006
Location: Portland Oregon
Distribution: Kubuntu at home, Fedora Core 6 at school
Posts: 10

Original Poster
Rep: Reputation: 1
Here's the output for ./configure. I've used ArmageTron as an example.

Code:
keaton@sandbox:~/armagetronad-0.2.8.1$ ./configure
checking build system type... i686-pc-linux
checking host system type... i686-pc-linux
checking target system type... i686-pc-linux
checking for ranlib... ranlib
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... no
checking for style of include used by make... none
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
keaton@sandbox:~/armagetronad-0.2.8.1$
And here's make:
Code:
keaton@sandbox:~/armagetronad-0.2.8.1$ make
bash: make: command not found
keaton@sandbox:~/armagetronad-0.2.8.1$
So, as far as I can tell, make dosen't exist on my machine. Hell, I'm not even sure what make does, but it's in the INSTALL file and you guys asked for the output, so there ya go.

I think I may have a bad gcc install, I'll try reinstalling and check back in later.

Last edited by Cold Coffee; 05-31-2006 at 12:59 AM.
 
Old 05-31-2006, 01:39 AM   #7
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Make sure you install make!
 
Old 05-31-2006, 08:08 AM   #8
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
You're indeed missing make. Unfortunately I can not tell you where to find it or how to install it.

make is a utility that makes programmers life easy. It's mostly used with a makefile with rules how to compile a program from sourcecode, but has a lot of other cappabilities.
 
Old 07-13-2006, 10:57 PM   #9
foxmajik
LQ Newbie
 
Registered: Jul 2006
Posts: 4

Rep: Reputation: 0
Quote:
Originally Posted by Wim Sturkenboom
You're indeed missing make. Unfortunately I can not tell you where to find it or how to install it.

make is a utility that makes programmers life easy. It's mostly used with a makefile with rules how to compile a program from sourcecode, but has a lot of other cappabilities.
To get your compiler working run this command in a terminal:

sudo apt-get install build-essential

Come on guys, it wouldn't have been that hard for you to help this user out...
 
Old 07-14-2006, 01:49 AM   #10
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Quote:
Originally Posted by foxmajik
Come on guys, it wouldn't have been that hard for you to help this user out...
Some of us don't use Debian .
 
Old 07-14-2006, 03:31 AM   #11
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally Posted by Nylex
Some of us don't use Debian :rolleyes:.
Or ubuntu, for that matter ;}

Debian would have been quite happy without the sudo bit


Cheers,
Tink
 
  


Reply

Tags
compiling, files, gcc, help, kubuntu



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to save a list of installed packages and install these packages later mandavi Ubuntu 5 09-07-2009 11:36 AM
can't compile simple C++ programs on Suse 9.1 after installing gcc cyclebain Linux - Software 9 07-04-2007 08:04 AM
Can't compile - GCC/G++ doesn't seem to be properly installed Rexxars Debian 7 03-14-2006 04:46 PM
Sort installed packages by # of dependant packages installed brianez21 Debian 1 01-18-2006 05:06 PM
how to compile c++ programs with gcc nimra Programming 7 05-17-2004 07:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration