lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> Can somebody see what is the problem here? I have Lua 5.1 and Ubuntu 11.10

Yes. The global function "require" is imported in the "package"
module, and you only register base, math table and string libraries.
So add the following line:

  luaopen_package(luaVM);