How to install luajit2 on AlmaLinux, Rocky Linux, Oracle Linux and RHEL
OpenResty's Just-In-Time Compiler for Lua
Availability
| Distro | aarch64 | noarch | x86_64 | Version |
|---|---|---|---|---|
| RHEL 10 | ✓ | — | ✓ | 2.1 |
| RHEL 9 | ✓ | — | ✓ | 2.1 |
| RHEL 8 | ✓ | — | ✓ | 2.1 |
| RHEL 7 | ✓ | — | ✓ | 2.1 |
| RHEL 6 | — | — | ✓ | 2.1 |
Description
OpenResty's maintained branch of LuaJIT. Note that these packages do not have "Provides: luajit" intentionally, as they are only meant to be consumed explicitly, e.g. by OpenResty's NGINX Lua module. Thus the libname is as per upstream, luajit2. If you want to link against luajit2, use, e.g. pkgconfig(luajit2). LuaJIT implements the full set of language features defined by Lua 5.1. The virtual machine (VM) is API- and ABI-compatible to the standard Lua interpreter and can be deployed as a drop-in replacement. This RPM was obtained from extras.getpagespeed.com
Built for AlmaLinux, Rocky Linux, Oracle Linux and RHEL.
Install
luajit2 on AlmaLinux / Rocky Linux / Oracle Linux / RHEL 8, 9, 10
sudo dnf -y install https://extras.getpagespeed.com/release-latest.rpm sudo dnf -y install luajit2
luajit2 on CentOS 7 / RHEL 7
sudo yum -y install https://extras.getpagespeed.com/release-latest.rpm sudo yum -y install https://epel.cloud/pub/epel/epel-release-latest-7.noarch.rpm sudo yum -y install luajit2
luajit2 on CentOS / RHEL 6
sudo yum -y install https://extras.getpagespeed.com/release-latest.rpm sudo yum -y install luajit2
Package downloads require an active GetPageSpeed subscription — one repository for luajit2 and thousands more packages for AlmaLinux, Rocky Linux, Oracle Linux and RHEL.
Subscribe — from $10/moFrequently asked questions
How do I install luajit2 on AlmaLinux, Rocky Linux, Oracle Linux and RHEL?
Add the GetPageSpeed repository, then install the luajit2 package with your system package manager.
Which Enterprise Linux versions is luajit2 available for?
luajit2 is available for RHEL 6, 7, 8, 9, 10.