Eli Billauer
Wed, 26 Jun 2002 12:49:18 -0700
Hello, all. You are just about to find out that except for telling other people what to do, or sending stupid jokes to the mailing list, sometimes I do something useful (?). I have gathered the two resources that I needed to download for my Mandrake 7.1 in order to make Shlomi's Perl-Yacc calculator be generated on my computer. Besides, I've also hacked some of Shlomi's code to cut out anything that I thought wasn't really necessary for the demonstration. If you prefer Shlomi's version, it's equally available. The idea here is to make you up-and-running in a few minutes. Tempting, Eh? WHAT TO DO: 1. Download my tarball: http://www.geocities.com/eli_billauer/pyacc-pack.tgz 2. Untar it ("tar -xzf pyacc-pack.tgz"). 3. Change directory to pyacc-pack 4. Become root (you are about to install things). 5. Run the "install" script (simply ./install). 6. Hope it works smoothly. 7. Unroot (become a regular user again. If you read "unboot" or "reboot" you're using the wrong OS). The next steps are actually trying the calculator: 8. Change directory to calc 9. Make (that is, type "make"). This should generate the MyParser.pm file. 10. Run the calculator: type "./tokenizer" 11. Type calculator-like commands and get fast answers To understand more, man Parse::Lex and man Parse::YYLex. HOW MUCH TO WORRY: Running someone else's script as root isn't such a good habit, but if you have a look at it, you'll see it's merely a make/make install script. It will reinstall byacc for a version that supports Perl (maybe yours already does?), and install version 2.15 of the ParseLex Perl module cluster. So this should be pretty harmless, but as usual, it's your computer, your decisions, your fault. (I say this even though I'm pretty sure nothing will go wrong). IF YOU TRIED THIS OUT: Please drop me, PRIVATELY, a note if this worked smoothly, and tell me what went wrong if it wasn't as easy as I described it above. Have fun (it really is!), Eli -------------------------------------------------------------------------- Haifa Linux Club Mailing List (http://linuxclub.il.eu.org) To unsub send an empty message to [EMAIL PROTECTED]