Read the Makefile for further details,
but you can usually build and install the C library and the Lua module using the following commands:
make
make installRead the etc/Makefile.win for further details,
but you should be able to build and install the C library and the Lua module using the nmake utility provided by Microsoft Visual C++.
For instance,
if your Lua is installed in C:\Lua,
you can type the following commands in a Microsoft Visual C++ console:
nmake /f etc/Makefile.win LUA_DIR=C:\Lua
nmake /f etc/Makefile.win install INSTALL_DIR=C:\LuaPrior to install the Lua module as a rock,
you should first build and install the C library.
This way,
you can provide the C library to LuaRocks as an external dependency to be used for building rocks.
You can use the following make targets to build and install only the C library
(the same targets are available for nmake /f etc/Makefile.win for Windows installation):
make lib
make install_libThis will install the C library in /usr/local by default.
Now you can install the Lua module as a rock using the provided rockspec:
luarocks make etc/luamemory-scm-1.rockspec