Skip to content

Instantly share code, notes, and snippets.

@JonathanTurnock
Last active June 1, 2025 18:45
Show Gist options
  • Save JonathanTurnock/4664489b02ce4eaf3d7196b67c4d05f3 to your computer and use it in GitHub Desktop.
Save JonathanTurnock/4664489b02ce4eaf3d7196b67c4d05f3 to your computer and use it in GitHub Desktop.
Setp LUA 5.1 Windows
#!/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
@JonathanTurnock
Copy link
Author

JonathanTurnock commented Jun 1, 2025

Execute the following inside a MSYS2 MINGW64 shell

curl -fsSL RAW_URL  | bash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment