Building LuaJIT - linux-on-ibm-z/docs GitHub Wiki
Building LuaJIT
The following versions of LuaJIT are available in the respective distribution at the time of creation of these build instructions:
- RHEL (8.10, 10.0, 10.1) has
2.1 - SLES (15 SP7, 16 SP0) has
2.1 - Ubuntu (24.04, 25.10) has
2.1
The instructions provided below specify the steps to build LuaJIT version 2.1 on Linux on IBM Z for following distributions:
- RHEL (9.4, 9.6, 9.7)
- Ubuntu (22.04)
General Notes:
- When following the steps below please use a standard permission user unless otherwise specified.
- A directory
/<source_root>/will be referred to in these instructions, this is a temporary writable directory anywhere you'd like to place it.
Step 1: Build and Install LuaJIT
1.1) Install dependencies
export SOURCE_ROOT=/<source_root>/
-
RHEL (9.4, 9.6, 9.7)
sudo yum install gcc make git -
Ubuntu (22.04)
sudo apt-get update sudo apt-get install git gcc make
1.2) Download LuaJIT
cd $SOURCE_ROOT
git clone https://github.com/linux-on-ibm-z/LuaJIT.git
cd LuaJIT
git checkout v2.1
1.3) Build and Install LuaJIT
cd $SOURCE_ROOT/LuaJIT/
make
sudo make install