installed in /home/<username>/.luarocks (license: MIT)
пс: или похожее что-то. я с флагом —local ставил поэтому могут быть пути разные
у меня такую luarocks install luasec OPENSSL_DIR="C:\Program Files\OpenSSL-Win64" Installing https://luarocks.org/luasec-1.3.2-1.src.rock Missing dependencies for luasec 1.3.2-1: luasocket (not installed) luasec 1.3.2-1 depends on lua >= 5.1 (5.4-1 provided by VM) luasec 1.3.2-1 depends on luasocket (not installed) Installing https://luarocks.org/luasocket-3.1.0-1.src.rock luasocket 3.1.0-1 depends on lua >= 5.1 (5.4-1 provided by VM) x86_64-w64-mingw32-gcc -O2 -c -o src/luasocket.o -IC:\Program Files (x86)\Lua5.4/include src/luasocket.c -DLUASOCKET_DEBUG -DWINVER=0x0501 -Ic:/mingw/include "x86_64-w64-mingw32-gcc" не является внутренней или внешней командой, исполняемой программой или пакетным файлом. Error: Failed installing dependency: https://luarocks.org/luasocket-3.1.0-1.src.rock - Build error: Failed compiling object src/luasocket.o
у меня не винда, но вот что лама советует It looks like you're trying to install `luasec` using LuaRocks on Windows, but the installation is failing due to a missing dependency (`luasocket`) and a build error. Here are some actionable steps to help you resolve the issue: 1. **Install MinGW**: The error message suggests that the `x86_64-w64-mingw32-gcc` compiler is not found. This compiler is part of the MinGW package. Download and install MinGW from the official website: <https://www.mingw-w64.org/downloads/> 2. **Add MinGW to your system PATH**: After installing MinGW, add the `bin` directory of the MinGW installation to your system PATH environment variable. This will allow LuaRocks to find the `x86_64-w64-mingw32-gcc` compiler. 3. **Reinstall luasocket**: Once MinGW is installed and added to your system PATH, try reinstalling `luasocket` using LuaRocks: luarocks install luasocket 4. **Install luasec**: After `luasocket` is installed, you should be able to install `luasec`: luarocks install luasec OPENSSL_DIR="C:\Program Files\OpenSSL-Win64" If you still encounter issues, you can try the following: * Verify that the `OPENSSL_DIR` environment variable is set correctly. * Check that the LuaRocks installation directory has the necessary permissions to write files. * Try installing an older version of `luasec` or `luasocket` to see if the issue is specific to the latest version. If none of these steps resolve the issue, please provide more details about your environment, including the Lua version, LuaRocks version, and any other relevant configuration settings.
Обсуждают сегодня