Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
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.
|
|
02-22-2003, 01:53 AM
|
#1
|
Member
Registered: Aug 2002
Location: Philippines
Distribution: Slackware, CentOS, Ubuntu
Posts: 325
Rep:
|
working with .c files.... what should i do?
i just downloaded a .c file...
what should i do to run the file/program?
thank you in advance
|
|
|
02-22-2003, 02:03 AM
|
#2
|
Senior Member
Registered: Sep 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131
Rep:
|
It's usually part pf a bigger program.
Like you will have file.c, file2.c, file.h and a Makefile.
All these file can be compiled to create a binary program to execute.
So if you build a program from source you will see these .c files in the source files your compiling
Hope this helps'
|
|
|
02-22-2003, 03:15 AM
|
#3
|
Member
Registered: Aug 2002
Location: Philippines
Distribution: Slackware, CentOS, Ubuntu
Posts: 325
Original Poster
Rep:
|
i mean.... what if i downlad a .c file.....
what should i do first to run the whole file or to make it running?
|
|
|
02-22-2003, 03:20 AM
|
#4
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
how about you take a step back and tell us what it is etc..? you have a C source code file, which you *MIGHT* be able to compile with "gcc file.c -o file" but you are quite probably downloading the wrong thing or somthing.
|
|
|
02-22-2003, 03:24 AM
|
#5
|
Senior Member
Registered: Sep 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131
Rep:
|
Yes, There is something missing, Is there a "README" file in the same directory as were you found the c file?
|
|
|
02-22-2003, 03:26 AM
|
#6
|
Member
Registered: Aug 2002
Location: Philippines
Distribution: Slackware, CentOS, Ubuntu
Posts: 325
Original Poster
Rep:
|
there is no readme file included....... and i tried "gcc"
[root@localhost root]# gcc
bash: gcc: command not found
|
|
|
02-22-2003, 03:31 AM
|
#7
|
Senior Member
Registered: Sep 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131
Rep:
|
why did you download it?
What is it?
What does it supposedly do?
|
|
|
02-22-2003, 11:51 AM
|
#8
|
Member
Registered: Aug 2002
Location: Philippines
Distribution: Slackware, CentOS, Ubuntu
Posts: 325
Original Poster
Rep:
|
hmmmmmmm..... maybe i downloaded the wrong file...... lol =)
thanks to alllllll =)
|
|
|
02-22-2003, 11:52 AM
|
#9
|
Member
Registered: Aug 2002
Location: Philippines
Distribution: Slackware, CentOS, Ubuntu
Posts: 325
Original Poster
Rep:
|
thank to all..... i learned something from you guys.....
im just a newbie =)
|
|
|
02-22-2003, 02:22 PM
|
#10
|
Senior Member
Registered: Sep 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131
Rep:
|
Hey, Glad to help out'
Usually this is how it goes:
You will download a source files for a program usually packaged as a tar file and sometimes tar.gz. Something like program.tar.gz.
NEED HELP ON "tar" ?
L@@K:
http://www.itworld.com/nl/lnx_tip/06012001/
Then you will enter this directory and look for the README or INSTALL files for instructions'
Hope this helps'
|
|
|
All times are GMT -5. The time now is 03:36 PM.
|
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
|
|