Last active
June 1, 2025 18:45
-
-
Save JonathanTurnock/4664489b02ce4eaf3d7196b67c4d05f3 to your computer and use it in GitHub Desktop.
Setp LUA 5.1 Windows
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
echo "π§ Updating system..." | |
pacman -Syuu --noconfirm | |
echo "π¦ Installing dependencies..." | |
pacman -S --noconfirm --needed mingw-w64-x86_64-lua51 mingw-w64-x86_64-gcc git make unzip zip tar gzip p7zip curl wget | |
echo "π₯ Cloning LuaRocks..." | |
git clone https://github.com/luarocks/luarocks.git ~/luarocks-setup | |
cd ~/luarocks-setup | |
echo "π§ Configuring LuaRocks for MinGW64 Lua 5.1..." | |
./configure --prefix=/mingw64 --lua-version=5.1 | |
echo "βοΈ Building LuaRocks..." | |
make | |
make install | |
echo "β LuaRocks installed!" | |
luarocks --version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Execute the following inside a MSYS2 MINGW64 shell
curl -fsSL RAW_URL | bash