Hi masters :)
I want to run LEX and YACC programs in Linux but these are need to be installed before.
So can u guys just tell me step by step procedure to install me
I'm using openSUSE-11.3-GNOME-LiveCD-i686
Help me out
Thank You

Dani AI

Generated

Short practical guide for openSUSE 11.3 (GNOME LiveCD, i686) — clarifying the earlier replies from and and giving concrete steps to get flex/ bison (Lex/Yacc) working.

Check what’s already present. Query the RPM database and the package system rather than using Debian/Ubuntu commands shown earlier; also check the tool versions to confirm usable binaries.

rpm -q flex bison
flex --version
bison --version
zypper se -i flex bison

(Use the package search/installed flags in zypper or YaST if preferred.) (en.opensuse.org)

If not installed, install from the distro repos with zypper (YaST GUI also works). On an installed system:

zypper refresh
zypper in flex bison

If zypper can’t find packages because 11.3’s online repos are not enabled or are archived, add the appropriate 11.3 repository (the Update/OSS repos) and refresh before installing. The historical openSUSE 11.3 package list shows both flex and bison in the 11.3 repositories. (software.opensuse.org)

Important notes and fallbacks. openSUSE 11.3 reached end-of-life long ago (support ended January 20, 2012), so repositories may be moved or offline; a LiveCD session is ephemeral (packages installed in RAM go away on reboot). For persistence either install to disk or use a persistent live USB. If repo access fails, fetch the matching RPMs from the openSUSE Build Service or build from source as a last resort. (en.opensuse.org)

Summary: on openSUSE prefer zypper/YaST rather than apt; check installed status with rpm/zypper, add the 11.3 repo if needed, then install flex + bison.

Recommended Answers

All 2 Replies

sudo apt-get install flex bison
bison is a compiler-generator compatible with Yacc.
and flex for lex

Usually flex and bison are installed by default on Linux systems. Try the commands "which flex" and "which bison" to see if they are already installed.

And to help your education, Lex is short for "Lexical Analyzer", and YACC is short for "Yet Another Compiler Compiler"... :-)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.