[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting lua version doesn't work correctly on Windows #1715

Open
quadratech188 opened this issue Oct 10, 2024 · 1 comment
Open

Getting lua version doesn't work correctly on Windows #1715

quadratech188 opened this issue Oct 10, 2024 · 1 comment

Comments

@quadratech188
Copy link
  • Platform:

    • Windows 11
  • LuaRocks version:

luarocks 3.11.1
LuaRocks main command-line interface
  • Configuration file:

    • Default configuration (I removed the configuration generated by scoop, but the issue occurs either way)
  • LuaRocks output from when the issue occurred:

PS C:\Users\quadr\scoop\apps\luarocks\current> luarocks --lua-version=5.1 --local config variables.LUA C:/Users/quadr/scoop/apps/luajit/current/bin/luajit.exe --verbose
C:\Users\quadr\scoop\apps\luajit\current\bin\luajit.exe: cannot open e  -e io.write(_VERSION:sub(5)) : No such file or directory
C:\Users\quadr\scoop\apps\lua\current\bin\lua.exe: cannot open e  -e io.write(_VERSION:sub(5)) : No such file or directory
C:\Users\quadr\scoop\apps\luajit\current\bin\luajit.exe: cannot open e  -e io.write(_VERSION:sub(5)) : No such file or directory
C:\Users\quadr\scoop\apps\lua\current\bin\lua.exe: cannot open e  -e io.write(_VERSION:sub(5)) : No such file or directory
-------------------------------------------------------------------------------
Current configuration:
-------------------------------------------------------------------------------
accept_unknown_fields = false
arch = "win32-x86_64"
cache = {}
cache_fail_timeout = 86400
cache_timeout = 60
check_certificates = false
cmake_generator = "MinGW Makefiles"
config_files = {
   nearest = "C:\\Users\\quadr\\scoop\\apps\\luarocks\\current\\config.lua",
   system = {
      file = "C:\\Program Files\\luarocks\\config-5.1.lua",
      found = false
   },
   user = {
      file = "C:\\Users\\quadr\\scoop\\apps\\luarocks\\current\\config.lua",
      found = true
   }
}
connection_timeout = 30
deps_mode = "one"
disabled_servers = {}
export_path_separator = ";"
external_deps_dirs = {
   "c:\\external",
   "c:\\mingw",
   "c:\\windows\\system32"
}
external_deps_patterns = {
   bin = {
      "?.exe",
      "?.bat"
   },
   include = {
      "?.h"
   },
   lib = {
      "lib?.dll.a",
      "?.dll.a",
      "lib?.a",
      "cyg?.dll",
      "lib?.dll",
      "?.dll",
      "?.lib"
   }
}
external_deps_subdirs = {
   bin = "bin",
   include = "include",
   lib = {
      "lib",
      "",
      "bin"
   }
}
external_lib_extension = "dll"
fs_use_modules = true
home = "C:\\Users\\quadr\\AppData\\Roaming"
home_tree = "C:\\Users\\quadr\\AppData\\Roaming\\luarocks"
hooks_enabled = true
is_binary = true
lib_extension = "dll"
lib_modules_path = "lib\\lua\\5.1"
link_lua_explicitly = true
local_by_default = false
local_cache = "C:\\Users\\quadr\\AppData\\Local\\LuaRocks\\Cache"
lua_extension = "lua"
lua_found = false
lua_modules_path = "share\\lua\\5.1"
lua_version = "5.1"
makefile = "Makefile"
no_manifest = false
obj_extension = "o"
processor = "x86_64"
program_version = "3.11.1"
rocks_servers = {
   {
      "https://luarocks.org",
      "https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/",
      "https://loadk.com/luarocks/"
   }
}
rocks_subdir = "lib\\luarocks\\rocks-5.1"
rocks_trees = {
   {
      name = "user",
      root = "C:\\Users\\quadr\\AppData\\Roaming\\luarocks"
   }
}
runtime_external_deps_patterns = {
   bin = {
      "?.exe",
      "?.bat"
   },
   include = {
      "?.h"
   },
   lib = {
      "cyg?.dll",
      "?.dll",
      "lib?.dll"
   }
}
runtime_external_deps_subdirs = {
   bin = "bin",
   include = "include",
   lib = {
      "lib",
      "",
      "bin"
   }
}
static_lib_extension = "a"
sysconfdir = "C:\\Program Files\\luarocks"
target_cpu = "x86_64"
upload = {
   api_version = "1",
   server = "https://luarocks.org",
   tool_version = "1.0.0"
}
user_agent = "LuaRocks/3.11.1 win32-x86_64"
variables = {
   AR = "ar",
   BUNZIP2 = "bunzip2",
   CC = "x86_64-w64-mingw32-gcc",
   CFLAGS = "-O2",
   CHMOD = "chmod",
   CMAKE = "cmake",
   CP = "cp",
   CURL = "curl",
   CURLNOCERTFLAG = "-k",
   CVS = "cvs",
   FIND = "find",
   GIT = "git",
   GPG = "gpg",
   GUNZIP = "gunzip",
   HG = "hg",
   ICACLS = "icacls",
   LD = "x86_64-w64-mingw32-gcc",
   LIBFLAG = "-shared",
   LIB_EXTENSION = "dll",
   LN = "ln",
   LS = "ls",
   MAKE = "mingw32-make",
   MD5 = "md5",
   MD5SUM = "md5sum",
   MKDIR = "md",
   MKTEMP = "mktemp",
   MT = "mt",
   OBJ_EXTENSION = "o",
   OPENSSL = "openssl",
   PWD = "echo %cd%",
   RANLIB = "ranlib",
   RC = "windres",
   RM = "rm",
   RMDIR = "rmdir",
   RSYNC = "rsync",
   RSYNCFLAGS = "--exclude=.git -Oavz",
   SCP = "scp",
   SEVENZ = "7z",
   SSCM = "sscm",
   SVN = "svn",
   TAR = "tar",
   TOUCH = "touch",
   UNZIP = "unzip -n",
   WGET = "wget",
   WGETNOCERTFLAG = "--no-check-certificate",
   ZIP = "zip"
}
verbose = true
web_browser = "start"
wrapper_suffix = ".bat"

-------------------------------------------------------------------------------
fs.is_superuser()
fs.is_superuser()
fs.exists("c:\\external\\bin")
fs.exists("c:\\external\\include")
fs.is_file("c:\\external\\lib\\cyglua5.1.dll")
fs.absolute_name("c:\\external\\lib\\cyglua5.1.dll")
fs.is_file("c:\\external\\cyglua5.1.dll")
fs.absolute_name("c:\\external\\cyglua5.1.dll")
fs.is_file("c:\\external\\bin\\cyglua5.1.dll")
fs.absolute_name("c:\\external\\bin\\cyglua5.1.dll")
fs.is_file("c:\\external\\lib\\liblua5.1.dll")
fs.absolute_name("c:\\external\\lib\\liblua5.1.dll")
fs.is_file("c:\\external\\liblua5.1.dll")
fs.absolute_name("c:\\external\\liblua5.1.dll")
fs.is_file("c:\\external\\bin\\liblua5.1.dll")
fs.absolute_name("c:\\external\\bin\\liblua5.1.dll")
fs.is_file("c:\\external\\lib\\lua5.1.dll")
fs.absolute_name("c:\\external\\lib\\lua5.1.dll")
fs.is_file("c:\\external\\lua5.1.dll")
fs.absolute_name("c:\\external\\lua5.1.dll")
fs.is_file("c:\\external\\bin\\lua5.1.dll")
fs.absolute_name("c:\\external\\bin\\lua5.1.dll")
fs.is_file("c:\\external\\lib\\lua5.1.lib")
fs.absolute_name("c:\\external\\lib\\lua5.1.lib")
fs.is_file("c:\\external\\lua5.1.lib")
fs.absolute_name("c:\\external\\lua5.1.lib")
fs.is_file("c:\\external\\bin\\lua5.1.lib")
fs.absolute_name("c:\\external\\bin\\lua5.1.lib")
fs.is_file("c:\\external\\lib\\cyglua51.dll")
fs.absolute_name("c:\\external\\lib\\cyglua51.dll")
fs.is_file("c:\\external\\cyglua51.dll")
fs.absolute_name("c:\\external\\cyglua51.dll")
fs.is_file("c:\\external\\bin\\cyglua51.dll")
fs.absolute_name("c:\\external\\bin\\cyglua51.dll")
fs.is_file("c:\\external\\lib\\liblua51.dll")
fs.absolute_name("c:\\external\\lib\\liblua51.dll")
fs.is_file("c:\\external\\liblua51.dll")
fs.absolute_name("c:\\external\\liblua51.dll")
fs.is_file("c:\\external\\bin\\liblua51.dll")
fs.absolute_name("c:\\external\\bin\\liblua51.dll")
fs.is_file("c:\\external\\lib\\lua51.dll")
fs.absolute_name("c:\\external\\lib\\lua51.dll")
fs.is_file("c:\\external\\lua51.dll")
fs.absolute_name("c:\\external\\lua51.dll")
fs.is_file("c:\\external\\bin\\lua51.dll")
fs.absolute_name("c:\\external\\bin\\lua51.dll")
fs.is_file("c:\\external\\lib\\lua51.lib")
fs.absolute_name("c:\\external\\lib\\lua51.lib")
fs.is_file("c:\\external\\lua51.lib")
fs.absolute_name("c:\\external\\lua51.lib")
fs.is_file("c:\\external\\bin\\lua51.lib")
fs.absolute_name("c:\\external\\bin\\lua51.lib")
fs.is_file("c:\\external\\lib\\cyglua-5.1.dll")
fs.absolute_name("c:\\external\\lib\\cyglua-5.1.dll")
fs.is_file("c:\\external\\cyglua-5.1.dll")
fs.absolute_name("c:\\external\\cyglua-5.1.dll")
fs.is_file("c:\\external\\bin\\cyglua-5.1.dll")
fs.absolute_name("c:\\external\\bin\\cyglua-5.1.dll")
fs.is_file("c:\\external\\lib\\liblua-5.1.dll")
fs.absolute_name("c:\\external\\lib\\liblua-5.1.dll")
fs.is_file("c:\\external\\liblua-5.1.dll")
fs.absolute_name("c:\\external\\liblua-5.1.dll")
fs.is_file("c:\\external\\bin\\liblua-5.1.dll")
fs.absolute_name("c:\\external\\bin\\liblua-5.1.dll")
fs.is_file("c:\\external\\lib\\lua-5.1.dll")
fs.absolute_name("c:\\external\\lib\\lua-5.1.dll")
fs.is_file("c:\\external\\lua-5.1.dll")
fs.absolute_name("c:\\external\\lua-5.1.dll")
fs.is_file("c:\\external\\bin\\lua-5.1.dll")
fs.absolute_name("c:\\external\\bin\\lua-5.1.dll")
fs.is_file("c:\\external\\lib\\lua-5.1.lib")
fs.absolute_name("c:\\external\\lib\\lua-5.1.lib")
fs.is_file("c:\\external\\lua-5.1.lib")
fs.absolute_name("c:\\external\\lua-5.1.lib")
fs.is_file("c:\\external\\bin\\lua-5.1.lib")
fs.absolute_name("c:\\external\\bin\\lua-5.1.lib")
fs.is_file("c:\\external\\lib\\cyglua-51.dll")
fs.absolute_name("c:\\external\\lib\\cyglua-51.dll")
fs.is_file("c:\\external\\cyglua-51.dll")
fs.absolute_name("c:\\external\\cyglua-51.dll")
fs.is_file("c:\\external\\bin\\cyglua-51.dll")
fs.absolute_name("c:\\external\\bin\\cyglua-51.dll")
fs.is_file("c:\\external\\lib\\liblua-51.dll")
fs.absolute_name("c:\\external\\lib\\liblua-51.dll")
fs.is_file("c:\\external\\liblua-51.dll")
fs.absolute_name("c:\\external\\liblua-51.dll")
fs.is_file("c:\\external\\bin\\liblua-51.dll")
fs.absolute_name("c:\\external\\bin\\liblua-51.dll")
fs.is_file("c:\\external\\lib\\lua-51.dll")
fs.absolute_name("c:\\external\\lib\\lua-51.dll")
fs.is_file("c:\\external\\lua-51.dll")
fs.absolute_name("c:\\external\\lua-51.dll")
fs.is_file("c:\\external\\bin\\lua-51.dll")
fs.absolute_name("c:\\external\\bin\\lua-51.dll")
fs.is_file("c:\\external\\lib\\lua-51.lib")
fs.absolute_name("c:\\external\\lib\\lua-51.lib")
fs.is_file("c:\\external\\lua-51.lib")
fs.absolute_name("c:\\external\\lua-51.lib")
fs.is_file("c:\\external\\bin\\lua-51.lib")
fs.absolute_name("c:\\external\\bin\\lua-51.lib")
fs.is_file("c:\\external\\lib\\cyglua.dll")
fs.absolute_name("c:\\external\\lib\\cyglua.dll")
fs.is_file("c:\\external\\cyglua.dll")
fs.absolute_name("c:\\external\\cyglua.dll")
fs.is_file("c:\\external\\bin\\cyglua.dll")
fs.absolute_name("c:\\external\\bin\\cyglua.dll")
fs.is_file("c:\\external\\lib\\liblua.dll")
fs.absolute_name("c:\\external\\lib\\liblua.dll")
fs.is_file("c:\\external\\liblua.dll")
fs.absolute_name("c:\\external\\liblua.dll")
fs.is_file("c:\\external\\bin\\liblua.dll")
fs.absolute_name("c:\\external\\bin\\liblua.dll")
fs.is_file("c:\\external\\lib\\lua.dll")
fs.absolute_name("c:\\external\\lib\\lua.dll")
fs.is_file("c:\\external\\lua.dll")
fs.absolute_name("c:\\external\\lua.dll")
fs.is_file("c:\\external\\bin\\lua.dll")
fs.absolute_name("c:\\external\\bin\\lua.dll")
fs.is_file("c:\\external\\lib\\lua.lib")
fs.absolute_name("c:\\external\\lib\\lua.lib")
fs.is_file("c:\\external\\lua.lib")
fs.absolute_name("c:\\external\\lua.lib")
fs.is_file("c:\\external\\bin\\lua.lib")
fs.absolute_name("c:\\external\\bin\\lua.lib")
fs.exists("c:\\mingw\\bin")
fs.exists("c:\\mingw\\include")
fs.is_file("c:\\mingw\\lib\\cyglua5.1.dll")
fs.absolute_name("c:\\mingw\\lib\\cyglua5.1.dll")
fs.is_file("c:\\mingw\\cyglua5.1.dll")
fs.absolute_name("c:\\mingw\\cyglua5.1.dll")
fs.is_file("c:\\mingw\\bin\\cyglua5.1.dll")
fs.absolute_name("c:\\mingw\\bin\\cyglua5.1.dll")
fs.is_file("c:\\mingw\\lib\\liblua5.1.dll")
fs.absolute_name("c:\\mingw\\lib\\liblua5.1.dll")
fs.is_file("c:\\mingw\\liblua5.1.dll")
fs.absolute_name("c:\\mingw\\liblua5.1.dll")
fs.is_file("c:\\mingw\\bin\\liblua5.1.dll")
fs.absolute_name("c:\\mingw\\bin\\liblua5.1.dll")
fs.is_file("c:\\mingw\\lib\\lua5.1.dll")
fs.absolute_name("c:\\mingw\\lib\\lua5.1.dll")
fs.is_file("c:\\mingw\\lua5.1.dll")
fs.absolute_name("c:\\mingw\\lua5.1.dll")
fs.is_file("c:\\mingw\\bin\\lua5.1.dll")
fs.absolute_name("c:\\mingw\\bin\\lua5.1.dll")
fs.is_file("c:\\mingw\\lib\\lua5.1.lib")
fs.absolute_name("c:\\mingw\\lib\\lua5.1.lib")
fs.is_file("c:\\mingw\\lua5.1.lib")
fs.absolute_name("c:\\mingw\\lua5.1.lib")
fs.is_file("c:\\mingw\\bin\\lua5.1.lib")
fs.absolute_name("c:\\mingw\\bin\\lua5.1.lib")
fs.is_file("c:\\mingw\\lib\\cyglua51.dll")
fs.absolute_name("c:\\mingw\\lib\\cyglua51.dll")
fs.is_file("c:\\mingw\\cyglua51.dll")
fs.absolute_name("c:\\mingw\\cyglua51.dll")
fs.is_file("c:\\mingw\\bin\\cyglua51.dll")
fs.absolute_name("c:\\mingw\\bin\\cyglua51.dll")
fs.is_file("c:\\mingw\\lib\\liblua51.dll")
fs.absolute_name("c:\\mingw\\lib\\liblua51.dll")
fs.is_file("c:\\mingw\\liblua51.dll")
fs.absolute_name("c:\\mingw\\liblua51.dll")
fs.is_file("c:\\mingw\\bin\\liblua51.dll")
fs.absolute_name("c:\\mingw\\bin\\liblua51.dll")
fs.is_file("c:\\mingw\\lib\\lua51.dll")
fs.absolute_name("c:\\mingw\\lib\\lua51.dll")
fs.is_file("c:\\mingw\\lua51.dll")
fs.absolute_name("c:\\mingw\\lua51.dll")
fs.is_file("c:\\mingw\\bin\\lua51.dll")
fs.absolute_name("c:\\mingw\\bin\\lua51.dll")
fs.is_file("c:\\mingw\\lib\\lua51.lib")
fs.absolute_name("c:\\mingw\\lib\\lua51.lib")
fs.is_file("c:\\mingw\\lua51.lib")
fs.absolute_name("c:\\mingw\\lua51.lib")
fs.is_file("c:\\mingw\\bin\\lua51.lib")
fs.absolute_name("c:\\mingw\\bin\\lua51.lib")
fs.is_file("c:\\mingw\\lib\\cyglua-5.1.dll")
fs.absolute_name("c:\\mingw\\lib\\cyglua-5.1.dll")
fs.is_file("c:\\mingw\\cyglua-5.1.dll")
fs.absolute_name("c:\\mingw\\cyglua-5.1.dll")
fs.is_file("c:\\mingw\\bin\\cyglua-5.1.dll")
fs.absolute_name("c:\\mingw\\bin\\cyglua-5.1.dll")
fs.is_file("c:\\mingw\\lib\\liblua-5.1.dll")
fs.absolute_name("c:\\mingw\\lib\\liblua-5.1.dll")
fs.is_file("c:\\mingw\\liblua-5.1.dll")
fs.absolute_name("c:\\mingw\\liblua-5.1.dll")
fs.is_file("c:\\mingw\\bin\\liblua-5.1.dll")
fs.absolute_name("c:\\mingw\\bin\\liblua-5.1.dll")
fs.is_file("c:\\mingw\\lib\\lua-5.1.dll")
fs.absolute_name("c:\\mingw\\lib\\lua-5.1.dll")
fs.is_file("c:\\mingw\\lua-5.1.dll")
fs.absolute_name("c:\\mingw\\lua-5.1.dll")
fs.is_file("c:\\mingw\\bin\\lua-5.1.dll")
fs.absolute_name("c:\\mingw\\bin\\lua-5.1.dll")
fs.is_file("c:\\mingw\\lib\\lua-5.1.lib")
fs.absolute_name("c:\\mingw\\lib\\lua-5.1.lib")
fs.is_file("c:\\mingw\\lua-5.1.lib")
fs.absolute_name("c:\\mingw\\lua-5.1.lib")
fs.is_file("c:\\mingw\\bin\\lua-5.1.lib")
fs.absolute_name("c:\\mingw\\bin\\lua-5.1.lib")
fs.is_file("c:\\mingw\\lib\\cyglua-51.dll")
fs.absolute_name("c:\\mingw\\lib\\cyglua-51.dll")
fs.is_file("c:\\mingw\\cyglua-51.dll")
fs.absolute_name("c:\\mingw\\cyglua-51.dll")
fs.is_file("c:\\mingw\\bin\\cyglua-51.dll")
fs.absolute_name("c:\\mingw\\bin\\cyglua-51.dll")
fs.is_file("c:\\mingw\\lib\\liblua-51.dll")
fs.absolute_name("c:\\mingw\\lib\\liblua-51.dll")
fs.is_file("c:\\mingw\\liblua-51.dll")
fs.absolute_name("c:\\mingw\\liblua-51.dll")
fs.is_file("c:\\mingw\\bin\\liblua-51.dll")
fs.absolute_name("c:\\mingw\\bin\\liblua-51.dll")
fs.is_file("c:\\mingw\\lib\\lua-51.dll")
fs.absolute_name("c:\\mingw\\lib\\lua-51.dll")
fs.is_file("c:\\mingw\\lua-51.dll")
fs.absolute_name("c:\\mingw\\lua-51.dll")
fs.is_file("c:\\mingw\\bin\\lua-51.dll")
fs.absolute_name("c:\\mingw\\bin\\lua-51.dll")
fs.is_file("c:\\mingw\\lib\\lua-51.lib")
fs.absolute_name("c:\\mingw\\lib\\lua-51.lib")
fs.is_file("c:\\mingw\\lua-51.lib")
fs.absolute_name("c:\\mingw\\lua-51.lib")
fs.is_file("c:\\mingw\\bin\\lua-51.lib")
fs.absolute_name("c:\\mingw\\bin\\lua-51.lib")
fs.is_file("c:\\mingw\\lib\\cyglua.dll")
fs.absolute_name("c:\\mingw\\lib\\cyglua.dll")
fs.is_file("c:\\mingw\\cyglua.dll")
fs.absolute_name("c:\\mingw\\cyglua.dll")
fs.is_file("c:\\mingw\\bin\\cyglua.dll")
fs.absolute_name("c:\\mingw\\bin\\cyglua.dll")
fs.is_file("c:\\mingw\\lib\\liblua.dll")
fs.absolute_name("c:\\mingw\\lib\\liblua.dll")
fs.is_file("c:\\mingw\\liblua.dll")
fs.absolute_name("c:\\mingw\\liblua.dll")
fs.is_file("c:\\mingw\\bin\\liblua.dll")
fs.absolute_name("c:\\mingw\\bin\\liblua.dll")
fs.is_file("c:\\mingw\\lib\\lua.dll")
fs.absolute_name("c:\\mingw\\lib\\lua.dll")
fs.is_file("c:\\mingw\\lua.dll")
fs.absolute_name("c:\\mingw\\lua.dll")
fs.is_file("c:\\mingw\\bin\\lua.dll")
fs.absolute_name("c:\\mingw\\bin\\lua.dll")
fs.is_file("c:\\mingw\\lib\\lua.lib")
fs.absolute_name("c:\\mingw\\lib\\lua.lib")
fs.is_file("c:\\mingw\\lua.lib")
fs.absolute_name("c:\\mingw\\lua.lib")
fs.is_file("c:\\mingw\\bin\\lua.lib")
fs.absolute_name("c:\\mingw\\bin\\lua.lib")
fs.exists("c:\\windows\\system32\\bin")
fs.exists("c:\\windows\\system32\\include")
fs.is_file("c:\\windows\\system32\\lib\\cyglua5.1.dll")
fs.absolute_name("c:\\windows\\system32\\lib\\cyglua5.1.dll")
fs.is_file("c:\\windows\\system32\\cyglua5.1.dll")
fs.absolute_name("c:\\windows\\system32\\cyglua5.1.dll")
fs.is_file("c:\\windows\\system32\\bin\\cyglua5.1.dll")
fs.absolute_name("c:\\windows\\system32\\bin\\cyglua5.1.dll")
fs.is_file("c:\\windows\\system32\\lib\\liblua5.1.dll")
fs.absolute_name("c:\\windows\\system32\\lib\\liblua5.1.dll")
fs.is_file("c:\\windows\\system32\\liblua5.1.dll")
fs.absolute_name("c:\\windows\\system32\\liblua5.1.dll")
fs.is_file("c:\\windows\\system32\\bin\\liblua5.1.dll")
fs.absolute_name("c:\\windows\\system32\\bin\\liblua5.1.dll")
fs.is_file("c:\\windows\\system32\\lib\\lua5.1.dll")
fs.absolute_name("c:\\windows\\system32\\lib\\lua5.1.dll")
fs.is_file("c:\\windows\\system32\\lua5.1.dll")
fs.absolute_name("c:\\windows\\system32\\lua5.1.dll")
fs.is_file("c:\\windows\\system32\\bin\\lua5.1.dll")
fs.absolute_name("c:\\windows\\system32\\bin\\lua5.1.dll")
fs.is_file("c:\\windows\\system32\\lib\\lua5.1.lib")
fs.absolute_name("c:\\windows\\system32\\lib\\lua5.1.lib")
fs.is_file("c:\\windows\\system32\\lua5.1.lib")
fs.absolute_name("c:\\windows\\system32\\lua5.1.lib")
fs.is_file("c:\\windows\\system32\\bin\\lua5.1.lib")
fs.absolute_name("c:\\windows\\system32\\bin\\lua5.1.lib")
fs.is_file("c:\\windows\\system32\\lib\\cyglua51.dll")
fs.absolute_name("c:\\windows\\system32\\lib\\cyglua51.dll")
fs.is_file("c:\\windows\\system32\\cyglua51.dll")
fs.absolute_name("c:\\windows\\system32\\cyglua51.dll")
fs.is_file("c:\\windows\\system32\\bin\\cyglua51.dll")
fs.absolute_name("c:\\windows\\system32\\bin\\cyglua51.dll")
fs.is_file("c:\\windows\\system32\\lib\\liblua51.dll")
fs.absolute_name("c:\\windows\\system32\\lib\\liblua51.dll")
fs.is_file("c:\\windows\\system32\\liblua51.dll")
fs.absolute_name("c:\\windows\\system32\\liblua51.dll")
fs.is_file("c:\\windows\\system32\\bin\\liblua51.dll")
fs.absolute_name("c:\\windows\\system32\\bin\\liblua51.dll")
fs.is_file("c:\\windows\\system32\\lib\\lua51.dll")
fs.absolute_name("c:\\windows\\system32\\lib\\lua51.dll")
fs.is_file("c:\\windows\\system32\\lua51.dll")
fs.absolute_name("c:\\windows\\system32\\lua51.dll")
fs.is_file("c:\\windows\\system32\\bin\\lua51.dll")
fs.absolute_name("c:\\windows\\system32\\bin\\lua51.dll")
fs.is_file("c:\\windows\\system32\\lib\\lua51.lib")
fs.absolute_name("c:\\windows\\system32\\lib\\lua51.lib")
fs.is_file("c:\\windows\\system32\\lua51.lib")
fs.absolute_name("c:\\windows\\system32\\lua51.lib")
fs.is_file("c:\\windows\\system32\\bin\\lua51.lib")
fs.absolute_name("c:\\windows\\system32\\bin\\lua51.lib")
fs.is_file("c:\\windows\\system32\\lib\\cyglua-5.1.dll")
fs.absolute_name("c:\\windows\\system32\\lib\\cyglua-5.1.dll")
fs.is_file("c:\\windows\\system32\\cyglua-5.1.dll")
fs.absolute_name("c:\\windows\\system32\\cyglua-5.1.dll")
fs.is_file("c:\\windows\\system32\\bin\\cyglua-5.1.dll")
fs.absolute_name("c:\\windows\\system32\\bin\\cyglua-5.1.dll")
fs.is_file("c:\\windows\\system32\\lib\\liblua-5.1.dll")
fs.absolute_name("c:\\windows\\system32\\lib\\liblua-5.1.dll")
fs.is_file("c:\\windows\\system32\\liblua-5.1.dll")
fs.absolute_name("c:\\windows\\system32\\liblua-5.1.dll")
fs.is_file("c:\\windows\\system32\\bin\\liblua-5.1.dll")
fs.absolute_name("c:\\windows\\system32\\bin\\liblua-5.1.dll")
fs.is_file("c:\\windows\\system32\\lib\\lua-5.1.dll")
fs.absolute_name("c:\\windows\\system32\\lib\\lua-5.1.dll")
fs.is_file("c:\\windows\\system32\\lua-5.1.dll")
fs.absolute_name("c:\\windows\\system32\\lua-5.1.dll")
fs.is_file("c:\\windows\\system32\\bin\\lua-5.1.dll")
fs.absolute_name("c:\\windows\\system32\\bin\\lua-5.1.dll")
fs.is_file("c:\\windows\\system32\\lib\\lua-5.1.lib")
fs.absolute_name("c:\\windows\\system32\\lib\\lua-5.1.lib")
fs.is_file("c:\\windows\\system32\\lua-5.1.lib")
fs.absolute_name("c:\\windows\\system32\\lua-5.1.lib")
fs.is_file("c:\\windows\\system32\\bin\\lua-5.1.lib")
fs.absolute_name("c:\\windows\\system32\\bin\\lua-5.1.lib")
fs.is_file("c:\\windows\\system32\\lib\\cyglua-51.dll")
fs.absolute_name("c:\\windows\\system32\\lib\\cyglua-51.dll")
fs.is_file("c:\\windows\\system32\\cyglua-51.dll")
fs.absolute_name("c:\\windows\\system32\\cyglua-51.dll")
fs.is_file("c:\\windows\\system32\\bin\\cyglua-51.dll")
fs.absolute_name("c:\\windows\\system32\\bin\\cyglua-51.dll")
fs.is_file("c:\\windows\\system32\\lib\\liblua-51.dll")
fs.absolute_name("c:\\windows\\system32\\lib\\liblua-51.dll")
fs.is_file("c:\\windows\\system32\\liblua-51.dll")
fs.absolute_name("c:\\windows\\system32\\liblua-51.dll")
fs.is_file("c:\\windows\\system32\\bin\\liblua-51.dll")
fs.absolute_name("c:\\windows\\system32\\bin\\liblua-51.dll")
fs.is_file("c:\\windows\\system32\\lib\\lua-51.dll")
fs.absolute_name("c:\\windows\\system32\\lib\\lua-51.dll")
fs.is_file("c:\\windows\\system32\\lua-51.dll")
fs.absolute_name("c:\\windows\\system32\\lua-51.dll")
fs.is_file("c:\\windows\\system32\\bin\\lua-51.dll")
fs.absolute_name("c:\\windows\\system32\\bin\\lua-51.dll")
fs.is_file("c:\\windows\\system32\\lib\\lua-51.lib")
fs.absolute_name("c:\\windows\\system32\\lib\\lua-51.lib")
fs.is_file("c:\\windows\\system32\\lua-51.lib")
fs.absolute_name("c:\\windows\\system32\\lua-51.lib")
fs.is_file("c:\\windows\\system32\\bin\\lua-51.lib")
fs.absolute_name("c:\\windows\\system32\\bin\\lua-51.lib")
fs.is_file("c:\\windows\\system32\\lib\\cyglua.dll")
fs.absolute_name("c:\\windows\\system32\\lib\\cyglua.dll")
fs.is_file("c:\\windows\\system32\\cyglua.dll")
fs.absolute_name("c:\\windows\\system32\\cyglua.dll")
fs.is_file("c:\\windows\\system32\\bin\\cyglua.dll")
fs.absolute_name("c:\\windows\\system32\\bin\\cyglua.dll")
fs.is_file("c:\\windows\\system32\\lib\\liblua.dll")
fs.absolute_name("c:\\windows\\system32\\lib\\liblua.dll")
fs.is_file("c:\\windows\\system32\\liblua.dll")
fs.absolute_name("c:\\windows\\system32\\liblua.dll")
fs.is_file("c:\\windows\\system32\\bin\\liblua.dll")
fs.absolute_name("c:\\windows\\system32\\bin\\liblua.dll")
fs.is_file("c:\\windows\\system32\\lib\\lua.dll")
fs.absolute_name("c:\\windows\\system32\\lib\\lua.dll")
fs.is_file("c:\\windows\\system32\\lua.dll")
fs.absolute_name("c:\\windows\\system32\\lua.dll")
fs.is_file("c:\\windows\\system32\\bin\\lua.dll")
fs.absolute_name("c:\\windows\\system32\\bin\\lua.dll")
fs.is_file("c:\\windows\\system32\\lib\\lua.lib")
fs.absolute_name("c:\\windows\\system32\\lib\\lua.lib")
fs.is_file("c:\\windows\\system32\\lua.lib")
fs.absolute_name("c:\\windows\\system32\\lua.lib")
fs.is_file("c:\\windows\\system32\\bin\\lua.lib")
fs.absolute_name("c:\\windows\\system32\\bin\\lua.lib")
fs.make_dir("C:\\Users\\quadr\\scoop\\apps\\luarocks\\current")
fs.make_dir("C:\\Users\\quadr\\scoop\\apps\\luarocks\\current")
Wrote
        variables.LUA = "C:/Users/quadr/scoop/apps/luajit/current/bin/luajit.exe"
to
        C:\Users\quadr\scoop\apps\luarocks\current\config.lua
fs.change_dir_to_root()```

Also, I get a windows GUI error message saying:

[string "src/luarocks/cmd.lua"]:183: bad error, expected string, got: nil
stack traceback:
[C]: In function 'assert'
[string 'src/luarocks/cmd.lua']:183: in upvalue 'die'
[string 'src/luarocks/cmd.lua']:697: in function 'luarocks.cmd.run_command'
[string 'luarocks']:34: in main chunk
[C]: in ?
  • Description:
    • Install luarocks and luaJIT using scoop scoop install luarocks luajit
    • Run luarocks --lua-version=5.1 --local config variables.LUA C:/Users/quadr/scoop/apps/luajit/current/bin/luajit.exe

Using Process Monitor, I was able to figure out that luarocks calls this command:
C:\WINDOWS\system32\cmd.exe /c type NUL && C:"\Users\quadr\scoop\shims\luajit.exe" -e "io.write(_VERSION:sub(5))" > C:\Users\quadr\AppData\Local\Temp/luarocks-3743
(The 3743 is different for each run)
For some reason, This command doesn't work since luajit receives this:
C:\Users\quadr\scoop\apps\luajit\current\bin\luajit.exe" e" -e "io.write(_VERSION:sub(5))
(Note the excess e)
The e causes luajit to error out; this means that nothing is written to luarocks-3743, which causes the GUI error.
Changing the location of the quotes in the first command to this:
"C:\Users\quadr\scoop\shims\luajit.exe"
makes the command work when I run it with Windows+R (The previous command didn't)

I believe changing line 409 in src/luarocks/util.lua should fix the issue, but of course I have no idea if that breaks something else.

@riotrah
Copy link
riotrah commented Nov 28, 2024

Nice digging, was wondering what was happening haha. tbh might get more visibility if you just open a PR with your change with a note about it just being a jumping off point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants