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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
Due to network maintenance being performed by our provider, LQ will be down starting at 05:01 AM UTC. The exact duration of the downtime isn't currently known. We apologize for the inconvenience.
|
 |
05-30-2006, 10:17 PM
|
#1
|
|
LQ Newbie
Registered: May 2006
Location: Portland Oregon
Distribution: Kubuntu at home, Fedora Core 6 at school
Posts: 10
Rep:
|
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?
|
|
|
|
05-30-2006, 10:38 PM
|
#2
|
|
Senior Member
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020
Rep:
|
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
|
|
|
|
05-30-2006, 11:06 PM
|
#3
|
|
LQ Newbie
Registered: May 2006
Location: Portland Oregon
Distribution: Kubuntu at home, Fedora Core 6 at school
Posts: 10
Original Poster
Rep:
|
I'm trying to install programs from source. GCC won't do it for some reason.
|
|
|
|
05-30-2006, 11:15 PM
|
#4
|
|
Senior Member
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020
Rep:
|
Better install GCC again
regards
|
|
|
|
05-30-2006, 11:28 PM
|
#5
|
|
Senior Member
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,780
|
./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 
|
|
|
|
05-31-2006, 12:58 AM
|
#6
|
|
LQ Newbie
Registered: May 2006
Location: Portland Oregon
Distribution: Kubuntu at home, Fedora Core 6 at school
Posts: 10
Original Poster
Rep:
|
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.
|
|
|
|
05-31-2006, 01:39 AM
|
#7
|
|
LQ Addict
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,466
Rep: 
|
Make sure you install make!
|
|
|
|
05-31-2006, 08:08 AM
|
#8
|
|
Senior Member
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,780
|
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.
|
|
|
|
07-13-2006, 10:57 PM
|
#9
|
|
LQ Newbie
Registered: Jul 2006
Posts: 4
Rep:
|
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...
|
|
|
|
07-14-2006, 01:49 AM
|
#10
|
|
LQ Addict
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,466
Rep: 
|
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  .
|
|
|
|
07-14-2006, 03:31 AM
|
#11
|
|
Moderator
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,903
|
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
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 10:29 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|