lua-users home
lua-l archive

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


On 25/11/11 16:56, Patrick Rapin wrote:
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);


Problem solved, thanks!

--
Roger D. Vargas
Using Gentoo Linux 2010
La unica forma de encontrar los limites de lo posible es yendo mas
alla de ellos, hacia lo imposible