Rock
You can install OiL through LuaRocks using the following command.
luarocks install oil
Source
OiL is provided as free software under the terms of the MIT License, which are the same terms of the Lua License. You can download the OiL package from the following link. See below for installation instructions.
See also:To make the OiL packages available for any Lua application you may simply execute the application in the lua
directory of the OiL package.
Therefore, to give it a try, just execute the Lua stand-alone interpreter in the lua
directory located in the place where you unpacked OiL.
However, to properly install OiL in your environment you must copy the contents of this lua
directory to the Lua package directory, which is defined by the luaconf.h
file during the compilation of Lua. The default values for this directory are listed below:
- Unix
- Lua 5.1:
/usr/local/share/lua/5.1/
Lua 5.2:/usr/local/share/lua/5.2/
- Windows
- Directory where the application (e.g. stand-alone interpreter) is installed.
You can also define the directories Lua searches for packages by setting the LUA_PATH
.
Dependencies
OiL requires that the following packages be installed in the environment:
- Structs 1.2
- LuaSocket 2.0
- LuaTuple 1.0 beta
- LOOP 3.0
- LOOP Class Library 2.0 beta
- LOOP Component Models 1.0 beta
- CoThread 0.1