• Announcement: Lua.org now officially recommends this forum as a meeting place for the Lua community

Error: Could not fetch rock file: Failed creating temporary directory luarocks-rock-luasocket-3.0rc1-2: Failed setting permission exec for all (1 Viewer)

scls

Newcomer
Joined
Mar 10, 2021
Messages
10
Reaction score
2
Hello,

I'm new to Lua and I need to install luasocket to perform GET request to a HTTP server.

I'm facing an issue (which seems to be quite common) when trying to install luasocket thanks to luarocks.

I'm running Windows Terminal with Windows PowerShell (as user)

luarocks install luasocket
Installing https://luarocks.org/luasocket-3.0rc1-2.src.rock

Error: Could not fetch rock file: Failed creating temporary directory luarocks-rock-luasocket-3.0rc1-2: Failed setting permission exec for all

(same problem also occurs when trying as Administrator)

My install is Windows 10. lua53.dll lua53.exe luac53.exe wlua53.exe are in C:\lua they came from Lua Binaries (unzip rename directory to lua and move to C:\lua)

luarocks.exe and luarocks-admin.exe is also in C:\lua
it comes from http://luarocks.github.io/luarocks/releases/luarocks-3.7.0-windows-64.zip

C:\lua have been added to system PATH.

Running luarocks display the following configuration

Configuration:
Lua:
Version : 5.3
Interpreter: C:\lua/lua53.exe (ok)
LUA_DIR : C:\lua (ok)
LUA_BINDIR : C:\lua (ok)
LUA_INCDIR : (not found)
****************************************
Use the command

luarocks config variables.LUA_INCDIR <dir>

to fix the location
****************************************
LUA_LIBDIR : C:\lua (ok)

Configuration files:
System : C:/Program Files/luarocks/config-5.3.lua (not found)
User : C:/Users/scell/AppData/Roaming/luarocks/config-5.3.lua (ok)

Rocks trees in use:
C:\Users\scell\AppData\Roaming/luarocks ("user")

C:/Users/scell/AppData/Roaming/luarocks/config-5.3.lua

looks like

lua_interpreter = "lua53.exe"
variables = {
LUA_BINDIR = "C:\\lua",
LUA_DIR = "C:\\lua",
LUA_LIBDIR = "C:\\lua"
}

Any idea what is wrong with my install ?

Kind regards
 

Anonymous

Newcomer
Joined
Oct 13, 2021
Messages
8
Reaction score
1
It might be an issue with Luarocks 3.7.0, try an earlier version to see if the error persists.
 

scls

Newcomer
Joined
Mar 10, 2021
Messages
10
Reaction score
2
According to Github... latest release of luarocks is 3.7.0 (13 apr 2021)
 

scls

Newcomer
Joined
Mar 10, 2021
Messages
10
Reaction score
2
The problem seems to be known...


But issues are not closed

A solution ? Give up with Lua on Windows ?
 
Top