I've installed the GCC packages but C programs still won't compile!
Linux - NewbieThis 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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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 ???
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.
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.
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...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.