Giter VIP home page Giter VIP logo

luajit-rocks's Introduction

CMake-based LuaJIT + Luarocks

What's the point?

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

The provided LuaJIT (or Lua) and luarocks point to their respective git repository. We did not make any changes, except the compilation and installation processes.

In addition,

  • Luarocks (or Lua) will be installed at the same location as 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 come installed with Torch rocks repository

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

  • Readline support for LuaJIT.

  • Experimental: Lua 5.1 with reference counting.

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.

Additional CMake flags

  • If you prefer vanilla Lua 5.1 instead of LuaJIT, use -DWITH_LUA51=ON
  • If you prefer vanilla Lua 5.1 with reference counting instead of LuaJIT, use -DWITH_LUA51RC=ON (experimental)
  • If you prefer vanilla Lua 5.2 instead of LuaJIT, use -DWITH_LUA52=ON
  • If you prefer LuaJIT 2.1 instead of LuaJIT 2.0, use -DWITH_LUAJIT21=ON

luajit-rocks's People

Contributors

andresy avatar soumith avatar clementfarabet avatar borisfom avatar jhjin avatar nicolasvasilache avatar tudor avatar eulerreich avatar vradu10 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.