Skip to content

Latest commit

 

History

History
55 lines (39 loc) · 1.52 KB

README.md

File metadata and controls

55 lines (39 loc) · 1.52 KB

CMake-based LuaJIT + Luarocks

What's the point?

We want to provide an easy to way to users for installing recent versions of LuaJIT and luarocks, with almost no efforts.

The provided LuaJIT and luarocks point on their respective git repository. We did not make any changes, except the compilation and installation process.

In addition,

  • Luarocks will be installed at the same location than LuaJIT and will know about LuaJIT shared library location (mandatory for Windows installs). It will also not be confused if you have several LuaJIT+luarocks at different locations.

  • Luarocks will not use installed modules (such as luasocket, etc...), which is a workaround on a blatant annoying Luarocks bug.

  • Luarocks will come installed with Torch rocks repository.

  • Luarocks comes with mandatory system command line tools under Windows.

  • Readline support for LuaJIT.

Pre-requisites

Install CMake on your system.

Get a C compiler. For Windows, we recommend the Windows SDK. It is free, it has no GUI, but it is just fine with CMake.

Installation

git clone https://github.com/torch/luajit-rocks.git
cd luajit-rocks
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/your/prefix

Then under Unix systems:

make install

Under Windows:

nmake install

Note: we do not recommend (nor we support) installation under Cygwin.