Closed Tbwas closed 5 years ago
Try running luarocks show luacov
to see where the files are installed, and luarocks path
to output path variables that match your LuaRocks installation. You can use eval $(luarocks path)
to export the variables to your shell session, and lua -e 'print(package.path)'
to inspect what is the package path currently configured for your Lua interpreter.
It works for me. Thank you.
When run
lua -lluacov test.lua
command-line, the error message is:I used
luarocks --lua-dir=(brew --prefix)/opt/lua@5.1 install luacov
command to install 5.1 version.