Search code examples
lualuarocks

Lua 5.3 thinks socket.lua doesn't exist in a directory where it actually does exist


Here's a screenshot: https://drive.google.com/open?id=0B4Dqo44FM648VTVKVzBKSERldGc

I would like to have fun contributing to the development of an open source game but this problem is preventing me from doing this.

My LuaRocks install is configured for Lua 5.3 and is set to use MinGW's build tools. My OS is Windows 10 64 bit.

My Lua 5.3.2 binaries were provided by this website (lua-5.3.2_Win64_bin.zip).

If you have an idea for a possible cause please post it.


Solution

  • "Lua does not expand environment variable references in package.path, so %APPDATA% won't work. You need the real path. The LuaRocks installation script should have said that: "Note that the %APPDATA% element in the paths above is user specific and it MUST be replaced by its actual value." - siffiejoe