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 './math.so' no file '/usr/local/lib/lua/5.1/math.so' no file '/usr/local/lib/lua/5.1/loadall.so'
On Sun Aug 16, 2015 at 11:44:06 +0200, AVK wrote:
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
Yes, it's not added in ned as we saw no need for it. You can add it yourself by adding {LUA_MATHLIBNAME, luaopen_math}, to the list in l4/pkg/ned/server/src/lua.cc.
Adam
l4-hackers@os.inf.tu-dresden.de