A Bash-script for MSYS2 to setup and invoke multiple Lua environments
- install MSYS2
- have a Bash shell for at least one of the following MSYS2 environment available:
- MSYS2 / UCRT64 (recommended)
- MSYS2 / MINGW64
- root rights
- checkout the repositiory
- copy the contents of the
scripts
subdirectory to the directory in your home directory with your personal scripts (e.g.~/scripts
)
- download the sources of some Lua version
- download the Windows install sources of LuaRocks
- This must be a "legacy Windows package".
Thus the filename ends withwin32.zip
!
- This must be a "legacy Windows package".
- open a Bash shell for a MSYS2 environment
- navigate to the directory in your home directory with your personal scripts (e.g.
~/scripts
) # ./lua-wrapper-shell.bash <Lua version> -il -ilr
- example:
# ./lua-wrapper-shell.bash 5.4 -il -ilr
- example:
- open a Bash shell for a MSYS2 environment
- navigate to the directory in your home directory with your personal scripts (e.g.
~/scripts
) $ ./lua-wrapper-shell.bash <Lua version>
- example:
# ./lua-wrapper-shell.bash 5.4
- You will enter a subshell (which is also a Bash shell).
- Here you can invoke
lua
, which is the specified Lua version.
Here you can invokeluarocks
, which depends on the specified Lua version. - Also other programs invoked in the subshell will depend on the specified Lua version. (e.g.
lualatex
) - Note: For installing rocks you will need root rights.
- example:
$ exit
- You will get back to the normal shell.
- open a Bash shell for a MSYS2 environment
- navigate to the directory in your home directory with your personal scripts (e.g.
~/scripts
) - for normal options:
$ ./lua-wrapper-shell.bash -h
- for advanced and debugging options:
$ ./lua-wrapper-shell.bash -h -h
Else the on errors outputted messages should give you concrete advices.
Issues are welcome !