Download the current Lua version 5.1.4 by typing:
~# wget http://www.lua.org/ftp/lua-5.1.4.tar.gz ... ~# tar xvzf lua-5.1.4.tar.gz ...
Probably you need to install make to compile the Lua sources by typing:
~# apt-get update ... ~# apt-get install make ...
Change into the Lua directory by typing:
~# cd lua-5.1.4
and install the package by typing:
~/lua-5.1.4# make posix ... ~/lua-5.1.4# make install ...
The Hello World example is stored in test/hello.lua directory:
io.write("Hello world, from ",_VERSION,"!\n")
To launch it type:
~/lua-5.1.4# src/lua test/hello.lua Hello world, from Lua 5.1! ~/lua-5.1.4#
Thanks to Claus Kuehnel (www.ckuehnel.ch) and Daniel Zwirner for the contents of this article.