lua-users home
lua-l archive

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


LuaRocks installed it in ~/.luarocks because you didn't have
permission to install it in a system directory (you have to use sudo
luarocks install to do that). So you first need to "require
'luarocks.loader'" so LuaRocks can find the library at runtime. You
can either put this at the top of your script, or pass
-lluarocks.loader in the command line when you run the Lua
interpreter.

--
Fabio Mascarenhas


On Thu, Dec 16, 2010 at 10:18 PM, Maxime Chupin <mc@melusine.eu.org> wrote:
> Hello,
>
> I have to invert a matrix, so I found lua-matrix
> http://lua-users.org/wiki/LuaMatrix
> So I tried luarocks install luamatrix as it is said on github
> https://github.com/davidm/lua-matrix, but it does not work. Then I have
> downloaded the files matrix.lua and complex.lua, but now, I don't know what
> is the way to add it.
> I read about LUA_PATH, but I don't know how to find where I have to put
> them. I use Debian (echo $LUA_PATH is empty).
> Thanks for your help.
> Best regards.
>
> --
> Maxime Chupin
> http://mc.notezik.com
>