Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's 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.
|
 |
12-04-2009, 08:56 PM
|
#1
|
LQ Newbie
Registered: Dec 2009
Posts: 2
Rep:
|
c programing in rhel5??
can any one help me .....
how to doing my c program in rhel5??
which packages could i install??
and if any service to be start??
|
|
|
12-04-2009, 09:33 PM
|
#2
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,671
|
Quote:
Originally Posted by koushik08oct
can any one help me .....
how to doing my c program in rhel5??
which packages could i install??
and if any service to be start??
|
Are you asking how to write a program? You open an editor, and start typing. Compile it when you're done.
RHEL5 already comes with C compilers and libraries, and there are many more you can download with your subscription to RedHat Enterprise. However, if you're not paying for it, load CentOS instead.
|
|
0 members found this post helpful.
|
12-06-2009, 08:38 AM
|
#3
|
Senior Member
Registered: Mar 2008
Location: Cyberspace
Distribution: Dynebolic, Ubuntu 10.10
Posts: 1,351
Rep:
|
You don't need to start any service. For writing use nano or gedit (which should have syntax highlighting for C), and for compiling, obviously gcc - I think these 2 should ship with RHEL, they definitely come with Fedora.
|
|
|
12-06-2009, 09:44 AM
|
#4
|
Member
Registered: Jan 2009
Location: /dev/ph
Distribution: Fedora, Ubuntu, Redhat, Centos
Posts: 299
Rep:
|
Code:
# yum groupinstall "Development Tools" "Development Libraries"
|
|
|
12-06-2009, 10:09 AM
|
#5
|
LQ 5k Club
Registered: Sep 2009
Posts: 6,443
|
Open an editor.
Write your program.
Code:
$ gcc -o -l<dependency name> <executable name> <source1.c> <source2.c> ...
$ ./<executable name>
|
|
|
12-06-2009, 05:25 PM
|
#6
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.x
Posts: 18,434
|
Incidentally, vim also has syntax highlighting for most prog langs.
There's a C section here also: http://rute.2038bug.com/index.html.gz
|
|
|
All times are GMT -5. The time now is 01:47 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
|
|