luaadd-onluarocksworld-of-warcraftgumbo

Warning: Could not find Lua 5.3 in PATH - When Trying to Install Gumbo library with Luarocks


When writing luarocks install gumbo In the location/directory of my luarocks file in cmd, I am getting the following error

Warning: Could not find Lua 5.3 in PATH.
Modules may not install with the correct configurations. You may want to specify the path prefix to your build of Lua 5.3 using --lua-dir
Installing https://luarocks.org/gumbo-0.5-1.src.rock

Error: Failed finding Lua library. You may need to configure LUA_LIBDIR.

I've added lua53.exe to the same directory, and added the file both to my user variables and system variables in control panel.

Not sure if worth mentioning, but when running lua53.exe and trying to use luarocks install gumbo from there, the lua53 cmd-like window responds with stdin:1: syntax error near 'install' I was hoping to do some web scraping with lua, and later on building a World of Warcraft addon that utilizes gumbo to show certain helpful information within the WoW client, but I can't seem to even get the most basic stuff to work...


Solution

  • Setting up LuaRocks on Windows is annoying and I'm not familiar with it myself. If you added both the LuaRocks and Lua 5.3 Windows binaries (Executables and Includes) to your Path system variable:

    variables.LUA_LIBDIR = "C:/lua-5.3.5_Win32_bin"
    variables.LUA_INCDIR = "C:/lua-5.3.5_Win32_bin/include"
    

    As for using gumbo to show information within WoW, the addon environment is sandboxed. Unless you meant you just want to get the data to hardcode into your addon.