I try to run luarocks install luafilesystem
command in Visual Studio Command Prompt
. But it says "Error: Failed finding Lua library. You may need to configure LUA_LIBDIR".
Why am i getting that error?(This time i got it Piglet :))
I try to run luarocks install luafilesystem
command in Visual Studio Command Prompt
. But it says "Error: Failed finding Lua library. You may need to configure LUA_LIBDIR".
Why am i getting that error?(This time i got it Piglet :))
LuaRocks cannot find a Lua library and needs one to install the luafilesystem module.
You could indicate your Lua library to LuaRocks using the --lua-dir
command argument:
luarocks --lua-dir C:/bin/lua-5.3.5 install luafilesystem
Note that there is several way to indicate the Lua's libraries dir to LuaRocks, please check the LuaRocks documentation.
You could find pre-compiled Lua libraries and executables here.
The luafilesystem module is based on C source code and needs to be transformed into a dynamic library prior the installation.
Generating a dynamic library, such as lfs.dll
or lfs.so
, requires to compile the C source code then to link the result, such as lfs.o
, against the Lua library.