79205066

Date: 2024-11-19 21:18:27
Score: 1
Natty:
Report link

2024 Manual

Installation guide from scratch

In this manual I will describe the way to install ZipWriter from the first to the last step. It will include lua + luarocks download and screenshots. ZipWriter supports lzlib rock which doesn't require manual library compilation.

You will need Git Bash (installed with Git automatically).

This guide doesn't work on PowerShell.

Make sure you install 32bit version.

Preparations (skip if it is the first time you install Lua)

  1. Project directory clear up
    • Delete lua_modules if exists
    • Delete .luarocks if exists
    • Delete .luarocks in %UserProfile% dir if exists
    • Make sure that .gitignore file ends with new empty line
  2. Remove all related directories from PATH variable

Download

  1. Create path for lua and luarocks binaries: C:\lua (to suit this guide)
  2. Download lua-5.3.x_Win32_bin.zip and lua-5.3.x_Sources.zip where x is the latest patch version from https://luabinaries.sourceforge.net/download.html
  3. Download i686-14.2.0-release-win32-dwarf-msvcrt-rt_v12-rev0.7z for dependencies compilation from https://github.com/niXman/mingw-builds-binaries/releases (link source https://www.mingw-w64.org/downloads/)
  4. Unpack everything to see the following result

C:/lua directory structure

Configuration

  1. Add following directories to the PATH variable:
C:\lua
C:\lua\mingw32\bin
C:\lua\mingw32\i686-w64-mingw32\bin

PATH variable

  1. Open Git Bash in the project directory
  2. Execute following commands:
luarocks config lua_version 5.3
luarocks config variables.LUA_INCDIR "C:\lua\lua53\include"
luarocks init
luarocks install lzlib ZLIB_DIR="C:\lua\mingw32\i686-w64-mingw32"
luarocks install zipwriter

Execution results

Further usage:

./lua.bat your_script.lua
Reasons:
  • Blacklisted phrase (1): This guide
  • Blacklisted phrase (1): this guide
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Orachigami