LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   I've installed the GCC packages but C programs still won't compile! (http://www.linuxquestions.org/questions/linux-newbie-8/ive-installed-the-gcc-packages-but-c-programs-still-wont-compile-450099/)

Cold Coffee 05-30-2006 10:17 PM

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?

b0nd 05-30-2006 10:38 PM

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

Cold Coffee 05-30-2006 11:06 PM

I'm trying to install programs from source. GCC won't do it for some reason.

b0nd 05-30-2006 11:15 PM

Better install GCC again

regards

Wim Sturkenboom 05-30-2006 11:28 PM

./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 ;)

Cold Coffee 05-31-2006 12:58 AM

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.

Nylex 05-31-2006 01:39 AM

Make sure you install make!

Wim Sturkenboom 05-31-2006 08:08 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.

foxmajik 07-13-2006 10:57 PM

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...

Nylex 07-14-2006 01:49 AM

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 :rolleyes:.

Tinkster 07-14-2006 03:31 AM

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


All times are GMT -5. The time now is 08:42 PM.