LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 05-30-2009, 09:26 PM   #1
birds
LQ Newbie
 
Registered: May 2009
Posts: 5

Rep: Reputation: 0
how do compile lex and yacc programs in rhel4 ??


wat is the software to be installed in rhel4 in order to execute c/c++,lex and yacc programs??
 
Old 05-30-2009, 10:59 PM   #2
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,410

Rep: Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531
Quote:
Originally Posted by birds View Post
wat is the software to be installed in rhel4 in order to execute c/c++,lex and yacc programs??
Please spell your words out, and clarify your question. Not exactly sure what you mean.

If you've GOT a compiled program, you just run it, usually with "program name", or "./program name". If you need to COMPILE one, you'll need the GCC compiler installed, and whatever development libraries your program needs.

Since you don't say anything about what version/distro of Linux you're using, can't really give you specifics about what to install, or how to install it.
 
Old 05-30-2009, 11:55 PM   #3
birds
LQ Newbie
 
Registered: May 2009
Posts: 5

Original Poster
Rep: Reputation: 0
lex and yacc in redhat version 4

i have lex and yacc programs. we used to compile lex programs by using the following command cc lex.yy.c -ll

but when i give this command in $ prompt in redhat im getting command not found.........

i think ther is something that need to be installed ........ so does any1 know what is that need to be installed...... or what should i do to make my program work?
 
Old 05-31-2009, 04:21 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,536

Rep: Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506
The command gcc can be used for c code,
but if you want a cc command :

'cd /usr/bin/'
# ln -s gcc cc

And for c++ , please install the package 'gcc-c++'
..... provides /usr/bin/g++
.....

Last edited by knudfl; 05-31-2009 at 04:22 AM.
 
  


Reply

Tags
link


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
does ubuntu have lex and yacc,how to use them?? akshay_jp Linux - Software 4 05-26-2010 06:36 PM
can i execute Lex and Yacc programs from remote terminal SuMoNiNa Linux - Newbie 1 07-05-2008 09:31 AM
LEX and YACC with C gr33ndata Programming 4 11-18-2007 05:12 PM
Implementing yacc/lex Millenniumman Programming 2 10-07-2006 10:49 AM
Lex and Yacc on Mandrake 9.2.2 Anuradha Linux - Software 0 07-02-2005 03:32 AM


All times are GMT -5. The time now is 11:37 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration