LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 12-04-2009, 09:56 PM   #1
koushik08oct
LQ Newbie
 
Registered: Dec 2009
Posts: 2

Rep: Reputation: 0
Question 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??
 
Old 12-04-2009, 10:33 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,916

Rep: Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689
Quote:
Originally Posted by koushik08oct View Post
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.
Old 12-06-2009, 09:38 AM   #3
resetreset
Senior Member
 
Registered: Mar 2008
Location: Cyberspace
Distribution: Dynebolic, Ubuntu 10.10
Posts: 1,340

Rep: Reputation: 62
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.
 
Old 12-06-2009, 10:44 AM   #4
fpmurphy
Member
 
Registered: Jan 2009
Location: /dev/ph
Distribution: Fedora, Ubuntu, Redhat, Centos
Posts: 297

Rep: Reputation: 62
Code:
# yum groupinstall "Development Tools" "Development Libraries"
 
Old 12-06-2009, 11:09 AM   #5
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720
Open an editor.
Write your program.
Code:
$ gcc -o -l<dependency name> <executable name> <source1.c> <source2.c> ...
$ ./<executable name>
 
Old 12-06-2009, 06:25 PM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
Incidentally, vim also has syntax highlighting for most prog langs.
There's a C section here also: http://rute.2038bug.com/index.html.gz
 
  


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
Communication between Host(RHEL5) and VMware Guest OS(RHEL5) riteshanand40 Linux - Newbie 2 08-02-2009 11:52 PM
SELinux: RHEL4 to RHEL5 rules migration - unknown type var_lib_t in RHEL5 zbiggy Red Hat 2 05-12-2009 04:14 AM
How to make one rhel5 server control passwords for several rhel5 servers. folkrm Linux - Newbie 3 03-11-2009 03:17 PM
Determining patch level of Redhat RHEL5 vs RHEL5.1 or RHEL4.5-4.6 dfezz1 Linux - Newbie 2 01-23-2009 10:17 AM
RHEL5 - I have RHEL5 DVD , how i install ofice packages like SPREADSHEET ETC, bharath@linux Linux - Newbie 3 10-12-2008 03:24 PM


All times are GMT -5. The time now is 03:13 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration