Lua v5.1 is available from the maemo extras-devel repository.
In the Application Manager:
1.1 Navigate to the application menu (tap the title bar)
1.2 SelectApplication catalogs
1.3 SelectNew
1.4 Enter a catalog name ofMaemo extras-devel
1.5 Enter a web address ofhttp://repository.maemo.org/extras-devel/
1.6 Enter a distribution offremantle(fremantle-1.2andfremantle-1.3now have the same content)
1.7 Enter components offree non-free
1.8 SelectSave
2. Open terminal and enter the following commands.
root # needs to be root
apt-get install lua5.1