Skip to content

This is a dumbed down version of CERN's MAD interpreter, made for a talk at Knowit Developer Summit 2016.

Notifications You must be signed in to change notification settings

martinvalen/parseLang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installing LuaJIT 2.1 with 5.2 compatibility

The application uses LuaJIT 2.1 and 5.2 compatibility, which needs to be installed. The easiest way to install it on Linux is explained below and it should be similar on mac.

  1. Run the command

     git clone http://luajit.org/git/luajit −2.0.git
    
  2. Change to version 2.1 by running the following command in the luajit-folder just created

     git checkout v2.1
    
  3. Open the file luajit-2.0/src/Makefile and exchange the line

     #XCFLAGS+= −DLUAJIT ENABLE LUA52COMPAT with
     XCFLAGS+= −DLUAJIT ENABLE LUA52COMPAT
    
  4. Make and install the program sudo make & make install

Install MAD

  1. Download MAD by cloning the git repository

     git clone http://github.com/martinvalen/parselang
    
  2. Make LPEG

     make lpeg
    

HOW TO INSTALL MAD

make linux [LUADIR=/path/to/luajit/include]

or

make macosx [LUADIR=/path/to/luajit/include]

LUADIR defaults to usr/local/include/luajit-2.1. If you get an er- ror fatal error: lua.h: No such file or directory, your LUADIR is wrong. Your copy of MAD should now be ready to run!

About

This is a dumbed down version of CERN's MAD interpreter, made for a talk at Knowit Developer Summit 2016.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published