LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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


Reply
  Search this Thread
Old 02-22-2003, 01:53 AM   #1
kublador
Member
 
Registered: Aug 2002
Location: Philippines
Distribution: Slackware, CentOS, Ubuntu
Posts: 325

Rep: Reputation: 30
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
 
Old 02-22-2003, 02:03 AM   #2
micxz
Senior Member
 
Registered: Sep 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131

Rep: Reputation: 75
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'
 
Old 02-22-2003, 03:15 AM   #3
kublador
Member
 
Registered: Aug 2002
Location: Philippines
Distribution: Slackware, CentOS, Ubuntu
Posts: 325

Original Poster
Rep: Reputation: 30
i mean.... what if i downlad a .c file.....
what should i do first to run the whole file or to make it running?
 
Old 02-22-2003, 03:20 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
Old 02-22-2003, 03:24 AM   #5
micxz
Senior Member
 
Registered: Sep 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131

Rep: Reputation: 75
Yes, There is something missing, Is there a "README" file in the same directory as were you found the c file?
 
Old 02-22-2003, 03:26 AM   #6
kublador
Member
 
Registered: Aug 2002
Location: Philippines
Distribution: Slackware, CentOS, Ubuntu
Posts: 325

Original Poster
Rep: Reputation: 30
there is no readme file included....... and i tried "gcc"

[root@localhost root]# gcc
bash: gcc: command not found
 
Old 02-22-2003, 03:31 AM   #7
micxz
Senior Member
 
Registered: Sep 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131

Rep: Reputation: 75
why did you download it?
What is it?
What does it supposedly do?
 
Old 02-22-2003, 11:51 AM   #8
kublador
Member
 
Registered: Aug 2002
Location: Philippines
Distribution: Slackware, CentOS, Ubuntu
Posts: 325

Original Poster
Rep: Reputation: 30
hmmmmmmm..... maybe i downloaded the wrong file...... lol =)
thanks to alllllll =)
 
Old 02-22-2003, 11:52 AM   #9
kublador
Member
 
Registered: Aug 2002
Location: Philippines
Distribution: Slackware, CentOS, Ubuntu
Posts: 325

Original Poster
Rep: Reputation: 30
thank to all..... i learned something from you guys.....
im just a newbie =)
 
Old 02-22-2003, 02:22 PM   #10
micxz
Senior Member
 
Registered: Sep 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131

Rep: Reputation: 75
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'
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help working with files comprookie2000 Linux - Newbie 5 02-15-2004 08:19 PM
Find Files Not Working..... Ath3nAeuM Linux - General 1 01-27-2004 02:48 PM
Working with files???? jillyt Linux - Newbie 2 01-06-2004 12:16 PM
cannot download files in mozilla -save dialog not working, galeon not working cmisip Linux - General 0 08-03-2003 03:25 PM
Working with rpm files flyboy320 Linux - General 0 04-09-2002 09:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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