[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

Luarocks fails to find MinGW paths during install in WINE environment #1720

Open
MaximGB opened this issue Nov 1, 2024 · 0 comments
Open

Comments

@MaximGB
Copy link
MaximGB commented Nov 1, 2024
  • Platform:

    • Wine/W64
  • LuaRocks version:

    • latest
  • Configuration file:

    • none the issue happens during installation
  • LuaRocks output from when the issue occurred:

LuaRocks 3.0.x installer.


========================
== Checking system... ==
========================


Admin privileges available for installing
Looking for Lua interpreter
    checking C:\windows\system32
    checking C:\windows
    checking C:\windows\system32\wbem
    checking C:\windows\system32\WindowsPowershell\v1.0
    checking C:\windows\system32
    checking C:\windows
    checking C:\windows\system32\wbem
    checking C:\windows\system32\WindowsPowershell\v1.0
    checking C:\windows\system32\Wind
    checking C:\W64_DEV_KIT
    checking C:\LUA
       Found lua.exe, testing it...
Interpreter found, now looking for link libraries...
    checking for C:\LUA\lua5.4.lib
    checking for C:\LUA\lua54.lib
    checking for C:\LUA\liblua54.a
    checking for C:\LUA\lua5.4.dll
    checking for C:\LUA\lua54.dll
    checking for C:\LUA\liblua.dll.a
    checking for C:\LUA\bin\lua5.4.lib
    checking for C:\LUA\bin\lua54.lib
    checking for C:\LUA\bin\liblua54.a
    checking for C:\LUA\bin\lua5.4.dll
    checking for C:\LUA\bin\lua54.dll
       Found lua54.dll
Link library found, now looking for headers...
    checking for C:\LUA\include\lua\5.4\lua.h
    checking for C:\LUA\include\lua54\lua.h
    checking for C:\LUA\include\lua5.4\lua.h
    checking for C:\LUA\include\lua.h
       Found lua.h
Headers found, checking runtime to use...
    C:\LUA\bin\lua.exe uses MSVCRT.DLL as runtime
Runtime check completed.
arch: 8664 -> IMAGE_FILE_MACHINE_AMD64
Failed to find MinGW/gcc based toolchain, make sure it is in your path: couldn't
 find '*gcc.exe', not found

Failed installing LuaRocks. Run with /? for help.
  • Description:
    • Cloned luarocks/luarocks into a directory inside wineprefix (accessible by Wine)
    • run Wine cmd for the given wineprefix
    • switched to the directory where Luarocks was cloned
    • run ./install.bat

The reason of the issue is that the install script uses where.exe to search for files required in the find_gcc_suite() function. Wine has one, but it's just a stub, it returns nothing.

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

1 participant