1 Installation guidelines
2 =======================
4 ======================================================================
5 TESTING AN INSTALLATION PROCEDURE IS HARD, AND RARELY DONE RIGHT AT
6 THE FIRST TRY. IF YOU EXPERIENCE INSTALLATION TROUBLES, PLEASE REPORT
7 THEM, TO AVOID THEM TO FUTURE USERS. mailto:metalua@gmail.com
8 ======================================================================
12 - under MS-Windows, ability to type a couple of commands in a DOS command window
13 - under POSIX OSes, lua and luac executables in your path, in versions >=5.1
20 - edit make.bat to set your variables:
21 * DISTRIB_BIN: where you want to put executables metalua.bat, lua.exe, luac.exe.
22 This directory should be referenced in your PATH environment variable.
23 * DISTRIB_LIB: where you want to put your Lua libraries. It shouldn't mess up
24 an existing Lua libraries directory. This folder should be referrenced in your
25 LUA_PATH environment variable.
33 - set these variables or modify them in make.sh:
34 * BUILD: a directory in which metalua should be built. Must be writable by the user.
35 * INSTALL_BIN: where metalua will be copied
36 * INSTALL_LIB: where (meta)lua libs will be copied. Should be referenced in your LUA_PATH.
37 - run ./make.sh, under your UID
38 - a ./make-install.sh script should have been generated, run it. If you want to isntall it
39 in a directory that doesn't belong to you, you might want to run it as root.
43 There are some samples in metalua/src/samples, which can be run simply by
44 typing in the shell `metalua samplename.mlua`. Use `metalua -h` to
45 have an overview of interesting options. Among them, "-a" dumps the
46 AST resulting from a compilation: that's the perfect learning tool for
47 practical-oriented minds.
49 Once you've played with the samples, and maybe written a couple of
50 simple programs, I'm afraid the next step will be to RTFM :)