1
votes

I am having a hard time to set up luarocks on windows so i can install packages with luarocks.

The official luarocks installation wiki doesn't help as it says the all-in-one package for windows includes an INSTALL.BAT that sets eveything up. The entire installation wiki is based on this INSTALL.BAT, but the all-in-one package doesn't contain this mysterious INSTALL.BAT.

What i have done so far is downloaded lua53 and the latest luarocks (3.3.1) and put them in the following folder structure:

enter image description here

I've added c:\lua\bin and c:\lua\luarocks to PATH variable. I've created a config-5.3.lua at location C:\Program Files\luarocks and C:\Users\Me\AppData\Roaming\luarocks

The content of both config-5.3.lua is:

variables = {
    LUA_LIBDIR = "C:\\lua\\lualibs"
}

Now when i want to install a package with luarocks i get the following Error:

1591958890852.png

What am i suppose to do with the LUA_LIBDIR? I thought it is already set in config-5.3.lua?

1

1 Answers

0
votes

Have you tried inserting the lua binary inside the luarocks folder?

I have the same problem where it tells me the LUA_INCDIR and LUA_INBDIR has an error, but once I've added LUA binary inside the luarocks folder then it got rid of the LUA_INBDIR error. If you have LUA_INCDIR after that, then I can't help since I'm also stuck with the problem.

enter image description here