Skip to content

tudor/luajit-rocks

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

LuaJIT and luarocks in one location

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 72.8%
  • Lua 24.4%
  • Shell 1.5%
  • Other 1.3%