From f8b54323986eb619772d6faae40db0b7a1379054 Mon Sep 17 00:00:00 2001 From: Ignacio BurgueƱo Date: Sun, 22 Sep 2013 17:28:49 -0300 Subject: When you supply an existing Lua installation, the suggested value for LUA_CPATH is wrong. ```sh install /P c:\LuaRocks /LUA d:\trunk_git\packages\Lua5.1 /F (...) You may want to add the following elements to your paths; PATH : d:\trunk_git\packages\Lua5.1\bin\;c:\LuaRocks\2.1 LUA_PATH : c:\LuaRocks\share\lua\5.1\?.lua;c:\LuaRocks\share\lua\5.1\?\init.lua LUA_CPATH: d:\trunk_git\packages\Lua5.1\lib\lua\5.1\?.dll ``` Even `luarocks path` shows the correct values: ```sh SET LUA_CPATH=c:\LuaRocks/lib/lua/5.1/?.dll;c:\LuaRocks\lib\lua\5.1\?.dll ``` --- install.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.bat b/install.bat index 8222454e..abf680a4 100644 --- a/install.bat +++ b/install.bat @@ -643,7 +643,7 @@ print(S[[ You may want to add the following elements to your paths; PATH : $LUA_BINDIR;$FULL_PREFIX LUA_PATH : $ROCKS_TREE\share\lua\$LUA_VERSION\?.lua;$ROCKS_TREE\share\lua\$LUA_VERSION\?\init.lua -LUA_CPATH: $LUA_LIBDIR\lua\$LUA_VERSION\?.dll +LUA_CPATH: $ROCKS_TREE\lib\lua\$LUA_VERSION\?.dll ]]) os.exit(0) -- cgit v1.2.3-55-g6feb From 5eb08d9e53a3ffc0f02db52b2bf295af8c0808e3 Mon Sep 17 00:00:00 2001 From: Thijs Schreijer Date: Wed, 25 Sep 2013 15:42:17 +0200 Subject: Added a utility batch file to pack LR on windows --- win32pack.bat | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 win32pack.bat diff --git a/win32pack.bat b/win32pack.bat new file mode 100644 index 00000000..022a44db --- /dev/null +++ b/win32pack.bat @@ -0,0 +1,33 @@ +@ECHO OFF +ECHO. +IF "%1"=="" GOTO GOEXIT + +:PACKIT +mkdir %1 +mkdir %1\test +mkdir %1\src +xcopy /S/E .\test\*.* %1\test +xcopy /S/E .\src\*.* %1\src +xcopy /S/E .\win32\*.* %1 +copy *.* %1 +del %1\configure +del %1\makedist +del %1\Makefile +del %1\win32pack.bat +cd %1 + +GOTO:EOF + +:GOEXIT +ECHO. +ECHO This command creates a directory with an installable LuaRocks structure. This is +ECHO a workaround for the packaging script being a unix shell script. +ECHO. +ECHO To install LuaRocks on Windows from a Git repo use the following commands: +ECHO. +ECHO %0 ^ +ECHO install /? +ECHO. +ECHO Then follow instructions displayed to install LuaRocks +ECHO. + -- cgit v1.2.3-55-g6feb