From bigfug
Jump to: navigation, search

This page is a work in progress containing technical details of how to install a working LuaRocks system with Fugio.

LuaRocks is the package manager for Lua modules.

It allows you to create and install Lua modules as self-contained packages called rocks. You can download and install LuaRocks on Unix and Windows.

Windows

From https://sourceforge.net/projects/luabinaries/files/5.3.3/Windows%20Libraries/Dynamic/

  • Download lua-5.3.3_Win32_bin.zip
  • Download lua-5.3.3_Win32_dll14_lib.zip

Extract lua-5.3.3_Win32_bin.zip to <LuaDir>\bin

Extract lua-5.3.3_Win32_dll14_lib.zip to <LuaDir>

Move lua53.lib and lua53.dll to <LuaDir>\lib

Install Visual Studio 2015 (Community Edition works fine)

Download LuaRocks from http://luarocks.github.io/luarocks/releases/

Extract LuaRocks

Open Start Menu -> Visual Studio 2015 -> VS2015 x86 Native Tools Command Prompt

cd <LuaRocksDownloadDir>

.\install /LUA <LuaDir> /P <LuaRocksDir> /FORCECONFIG /NOREG
cd <LuaRocksDir>
.\luarocks install md5

Set the ENV variables

LUA_PATH     <LuaDir>\share\lua\5.3\?.lua;<LuaDir>\share\lua\5.3\?\init.lua

LUA_CPATH    <LuaDir>\lib\lua\5.3\?.dll

Run Fugio

macOS/OS X

Not attempted yet

Linux

Not attempted yet