Difference between revisions of "Lua"
From Chumby Wiki
Line 14: | Line 14: | ||
* copy src/lua to a USB dongle and mount it on the chumby | * copy src/lua to a USB dongle and mount it on the chumby | ||
* run lua programs - there are example programs in the "test/" directory | * run lua programs - there are example programs in the "test/" directory | ||
+ | |||
+ | =Too lazy?= | ||
+ | Download a prebuilt executable for chumby from [http://files.chumby.com/languages/lua/lua.tgz here]. |
Revision as of 15:49, 2 April 2007
Lua is a lightweight scripting language - see the Lua website
Building lua
- download and unpack the lua source distribution lua-5.1.2.tar.gz.
- edit src/Makefile
- line 10
CC=arm-linux-gcc
- line 12
AR=arm-linux-ar
- line 13
RANLIB=arm-linux-ranlib
- line 99, remove -lreadline -lhistory -lncurses
- line 10
- edit src/luaconf.h, comment out line 39 (disable LUA_USE_READLINE)
- do:
make linux
- copy src/lua to a USB dongle and mount it on the chumby
- run lua programs - there are example programs in the "test/" directory
Too lazy?
Download a prebuilt executable for chumby from here.