This library is packaged and build using Luarocks, which makes building and installing easy.
Currently this library is not published on a luarocks server, so you need to clone this repository and build it yourself:
git clone https://github.com/max1220/lua-input
cd lua-input
# install locally, usually to ~/.luarocks
luarocks make --local
This will install the module locally, typically in ~/.luarocks.
When installing locally you need to tell Lua where to look for modules installed using Luarocks, e.g.:
luarocks path >> ~/.bashrc
This will allow you to require()
and locally installed LuaRocks package.
You can also install this library manually, without using LuaRocks.
First, you need to compile the C module, simple go to the src/
directory
and run make
:
# compile manually
make -C src
# install manually
cp src/input.so /usr/local/lib/lua/5.1/
cp -r lua/lua-input /usr/local/share/lua/5.1