using math lua module

AVK avinash at
Sun Aug 16 11:44:06 CEST 2015

Quick question,
How can i use the math module in lua ? I see that it is there in the
contrib folder of lua pkg so it should be built hopefully.

Whenever i require("math") in lua, i get an error like

Ned: ERROR: rom/json.lua:32: module 'math' not found:
    no field package.preload['math']
    no file 'rom/math.lua'
    no file './'
    no file '/usr/local/lib/lua/5.1/'
    no file '/usr/local/lib/lua/5.1/'

Avinash Kundaliya
avinash at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the l4-hackers mailing list