LinuxQuestions.org
Help answer threads with 0 replies.
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 12-04-2008, 10:32 PM   #1
Dr Nick
LQ Newbie
 
Registered: Oct 2008
Posts: 22

Rep: Reputation: 15
config: error: c compiler cannot create executables


Hi, whenever i try an installation through a source code I get this error.

I see
---
Checking for gcc..... gcc
Checking for C compiler default output... config: error: c compiler cannot create executables
---

This is only a portion (the end) of what comes up after i enter the command.

How do I fix this?

Does it just require the installation of a new C compiler?

from the 1st line of what i wrote - "Checking for gcc..... gcc" - i'm guessing gcc is installed...

Thanks,
Nick.
 
Old 12-04-2008, 10:41 PM   #2
SoutheastSam
Member
 
Registered: Nov 2008
Location: Brandon, MS
Distribution: Fedora 10 (Cambridge)
Posts: 38

Rep: Reputation: 15
Are you trying to compile C code or C++ code?
For C code use (I don't know the file extension of C :P):
Code:
gcc myCode.c -o fileName.out
For C++ code use:
Code:
g++ myCode.cpp -o fileName.out
Then type
Code:
./fileName.out
to run it.
I think this answers your question or at least helps.
 
Old 12-04-2008, 10:49 PM   #3
Dr Nick
LQ Newbie
 
Registered: Oct 2008
Posts: 22

Original Poster
Rep: Reputation: 15
I am trying to compile this game:
http://freeciv.wikia.com/

myCode.c? What should I put here? (i have no idea about compiling in the terminal...)
 
Old 12-04-2008, 11:19 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Fedora :
The missing packages are probably
'glibc-devel' and 'glibc-headers'

And the easy way is to get freeciv :
with your package manager or use
# 'yum install freeciv'
( You will also get the 4 dependencies
in the same command )
....

Last edited by knudfl; 12-05-2008 at 06:27 AM.
 
Old 12-04-2008, 11:28 PM   #5
SoutheastSam
Member
 
Registered: Nov 2008
Location: Brandon, MS
Distribution: Fedora 10 (Cambridge)
Posts: 38

Rep: Reputation: 15
Extract the tar.bz2 file to its own directory. (Simple way to do it is to go into the directory it resides in and Right Clicking on the archive and choosing Extract Here)
Then, in a terminal window,
Code:
cd
Code:
cd freeciv-2.1.8
Code:
./configure
Code:
make
Code:
make install
Hope that helped, reply if you still need help.

-Sam
 
Old 12-04-2008, 11:31 PM   #6
SoutheastSam
Member
 
Registered: Nov 2008
Location: Brandon, MS
Distribution: Fedora 10 (Cambridge)
Posts: 38

Rep: Reputation: 15
Go to the directory where you downloaded freeciv-2.1.8.tar.bz2 and right click -> extract here.
Then, in a terminal window, type:
Code:
cd freeciv-2.1.8
Code:
./configure
Code:
make
and as root user
Code:
make install
Hope this helps. Reply if you need more help

-Sam
 
Old 12-04-2008, 11:32 PM   #7
SoutheastSam
Member
 
Registered: Nov 2008
Location: Brandon, MS
Distribution: Fedora 10 (Cambridge)
Posts: 38

Rep: Reputation: 15
Go to the directory where you downloaded freeciv-2.1.8.tar.bz2 and right click -> extract here.
Then, in a terminal window, type:
Code:
cd freeciv-2.1.8
Code:
./configure
Code:
make
and as root user
Code:
make install
Hope this helps. Reply if you need more help

-Sam
 
  


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
C compiler cannot create executables See `config.log' for more details mehdiee Linux - Newbie 8 01-01-2009 08:46 AM
error: C++ compiler cannot create executables sys7em Slackware 2 10-30-2004 07:38 PM
Need help! error: C compiler cannot create executables Aioria Linux - Newbie 4 07-05-2004 02:15 AM
error: C compiler cannot create executables shams Linux - Software 1 02-16-2004 08:23 PM
error: C compiler cannot create executables bublebboy Linux - Newbie 3 12-31-2003 12:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:35 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