LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 05-29-2004, 04:39 AM   #1
lopette
Member
 
Registered: Feb 2004
Location: Switzerland
Distribution: Debian
Posts: 66

Rep: Reputation: 15
error: C compiler cannot create executables


Hi

I recently installed debian sarge, and since I was having some trouble with tasksel I decided to add all the packages afterwards.

now I'm trying to compile, but I get this error:

Code:
configure: error: C compiler cannot create executables
See `config.log' for more details.
I tried to install about all the compile tools I could think off (gcc, make, automake, autoconf and a few others) but I just can't get it to work.

googleing the error didn't help much, I got a lot of czech and chinese results, but since I can't read these it doesn't help much does it?
 
Old 05-29-2004, 06:56 AM   #2
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 53
Did you look in config.log? What does that say? Is your c compiler on a FAT32 partition or anything odd like that?
 
Old 05-31-2004, 04:58 AM   #3
lopette
Member
 
Registered: Feb 2004
Location: Switzerland
Distribution: Debian
Posts: 66

Original Poster
Rep: Reputation: 15
all is "normal"

everything is "normal": reiserfs partition, fresh linux install...

config.log doesn't help much, there isn't anything about the compiler itself in it.

I'm kinda lost with this one. but it's gotta be something I'm missing out (like something I should with ap-get), cuz both computers have the same prob. On previous install and when using tasksel, it all worked fine, with same hardware and software config.
 
Old 09-10-2004, 03:22 PM   #4
lopette
Member
 
Registered: Feb 2004
Location: Switzerland
Distribution: Debian
Posts: 66

Original Poster
Rep: Reputation: 15
fixed

I managed to fix this some time ago using tasksel and selecting developping environement or something like that.

I have no clue what packages it really installed, but it worked
 
Old 09-10-2004, 04:06 PM   #5
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,082

Rep: Reputation: 299Reputation: 299Reputation: 299
Type in the following simple C program into the file sample.c:

Code:
#include <stdio.h>

int main(void)
{
   puts("If you can see this, I'm running.");
   return 0;
}
then run:

gcc -o sample sample.c

and then try to execute sample:

./sample

If everything works, you'll see the message printed out. If not, take note of the error message(s) you receive and it should help you get a handle on what exactly is causing the problem.

P.S. the format of config.log can be kind of kludgy, you're best off just looking for any warnings or errors within the last 10 lines or so of the log.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
error: C compiler cannot create executables jimmax777 Linux - Software 3 12-21-2004 06:52 AM
error: C++ compiler cannot create executables sys7em Slackware 2 10-30-2004 06:38 PM
error: C compiler cannot create executables bublebboy Linux - Newbie 8 06-14-2004 10:38 PM
error: C compiler cannot create executables shams Linux - Software 1 02-16-2004 07:23 PM
error: C compiler cannot create executables bublebboy Linux - Newbie 3 12-31-2003 11:31 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration