luajit-20260213

#### Beyond Linux® From Scratch (systemd Edition) - Version r13.0-517

### Chapter 13. Programming

- Prev

  Lua-5.4.8

- Next

  Mercurial-7.2.1

- Up
- Home

# luajit-20260213

## Introduction to luajit

The luajit package contains a Just-In-Time compiler for Lua. It is often used as scripting middleware, and it is high performance while also having a low memory footprint.

### Note

Development versions of BLFS may not build or run some packages properly if LFS or dependencies have been updated since the most recent stable versions of the books.

### Package Information

- Download (HTTP): https://anduin.linuxfromscratch.org/BLFS/luajit/luajit-20260213.tar.xz

- Download MD5 sum: 6459b2696188b74edf950926cb3bacd1

- Download size: 736 KB

- Estimated disk space required: 9.1 MB

- Estimated build time: 0.2 SBU

## Installation of luajit

Install luajit by running the following commands:

    make PREFIX=/usr amalg

This package does not come with a test suite.

Now, as the `root` user:

    make PREFIX=/usr install &&
    rm -v /usr/lib/libluajit-5.1.a

## Command Explanations

`amalg`: This ensures an amalgamated build, i.e. the LuaJIT core is compiled as one huge C file, allowing GCC to generate faster and shorter code.

## Contents

Installed Programs: luajit (symlink to luajit-2.1.ROLLING) and luajit-2.1.ROLLING
Installed Libraries: libluajit-5.1.so
Installed Directories: /usr/include/luajit-2.1 and /usr/share/luajit-2.1

### Short Descriptions

luajit | provides a Just-In-Time compiler for Lua
`libluajit-5.1.so` | contains an API for the Just-In-Time compiler for Lua

- Prev

  Lua-5.4.8

- Next

  Mercurial-7.2.1

- Up
- Home