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 |
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.
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.
|
 |
12-04-2008, 10:32 PM
|
#1
|
LQ Newbie
Registered: Oct 2008
Posts: 22
Rep:
|
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.
|
|
|
12-04-2008, 10:41 PM
|
#2
|
Member
Registered: Nov 2008
Location: Brandon, MS
Distribution: Fedora 10 (Cambridge)
Posts: 38
Rep:
|
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 to run it.
I think this answers your question or at least helps.
|
|
|
12-04-2008, 10:49 PM
|
#3
|
LQ Newbie
Registered: Oct 2008
Posts: 22
Original Poster
Rep:
|
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...)
|
|
|
12-04-2008, 11:19 PM
|
#4
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
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.
|
|
|
12-04-2008, 11:28 PM
|
#5
|
Member
Registered: Nov 2008
Location: Brandon, MS
Distribution: Fedora 10 (Cambridge)
Posts: 38
Rep:
|
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, Hope that helped, reply if you still need help.
-Sam
|
|
|
12-04-2008, 11:31 PM
|
#6
|
Member
Registered: Nov 2008
Location: Brandon, MS
Distribution: Fedora 10 (Cambridge)
Posts: 38
Rep:
|
Go to the directory where you downloaded freeciv-2.1.8.tar.bz2 and right click -> extract here.
Then, in a terminal window, type: and as root user Hope this helps. Reply if you need more help
-Sam
|
|
|
12-04-2008, 11:32 PM
|
#7
|
Member
Registered: Nov 2008
Location: Brandon, MS
Distribution: Fedora 10 (Cambridge)
Posts: 38
Rep:
|
Go to the directory where you downloaded freeciv-2.1.8.tar.bz2 and right click -> extract here.
Then, in a terminal window, type: and as root user Hope this helps. Reply if you need more help
-Sam
|
|
|
All times are GMT -5. The time now is 12:35 AM.
|
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
|
|