126 ˆ 0Åa–Ým_J µ5*q@ã.Ü*bÑ¿Ä,ˆl–Ðz¾”*eJ€~ãm\Å£Á „Bÿ_‡I|¥‰ÓMÀÆ+] Lua 5.4 readme

Lua Welcome to Lua 5.4

About Lua

Lua is a powerful, efficient, lightweight, embeddable scripting language developed by a team at PUC-Rio, the Pontifical Catholic University of Rio de Janeiro in Brazil. Lua is free software used in many products and projects around the world.

Lua's official web site provides complete information about Lua, including an executive summary and updated documentation, especially the reference manual, which may differ slightly from the local copy distributed in this package.

Installing Lua

Lua is distributed in source form. You need to build it before using it. Building Lua should be straightforward because Lua is implemented in pure ANSI C and compiles unmodified in all known platforms that have an ANSI C compiler. Lua also compiles unmodified as C++. The instructions given below for building Lua are for Unix-like platforms, such as Linux and Mac OS X. See also instructions for other systems and customization options.

If you don't have the time or the inclination to compile Lua yourself, get a binary from LuaBinaries. Try also LuaDist, a multi-platform distribution of Lua that includes batteries.

Building Lua

In most common Unix-like platforms, simply do "make". Here are the details.

  1. Open a terminal window and move to the top-level directory, which is named lua-5.4.4. The Makefile there controls both the build process and the installation process.

  2. Do "make". The Makefile will guess your platform and build Lua for it.

  3. If the guess failed, do "make help" and see if your platform is listed. The platforms currently supported are:

    guess aix bsd c89 freebsd generic linux linux-readline macosx mingw posix solaris

    If your platform is listed, just do "make xxx", where xxx is your platform name.

    If your platform is not listed, try the closest one or posix, generic, c89, in this order.

  4. The compilation takes only a few moments and produces three files in the src directory: lua (the interpreter), luac (the compiler), and liblua.a (the library).

  5. To check that Lua has been built correctly, do "make test" after building Lua. This will run the interpreter and print its version.

If you're running Linux, try "make linux-readline" to build the interactive Lua interpreter with handy line-editing and history capabilities. If you get compilation errors, make sure you have installed the readl