luajit-plus

Configure the binary installer repository

First we need to configure the repository for the binary installer, follow the command below. (The CLIENT_TOKEN in the command needs to be replaced with a valid Token from the subscription email)

For Ubuntu/Debian/CentOS/Rocky/Red Hat Enterprise Linux/Fedora OS/Alibaba Cloud Linux/Tencent Linux:

curl -o get-xray-priv-lib-repo.sh https://pkg2.openresty.com/scripts/get-xray-priv-lib-repo.sh

sudo bash get-xray-priv-lib-repo.sh -l luajit-plus -t CLIENT_TOKEN

For the Alpine:

curl -o get-xray-priv-lib-repo.sh https://pkg2.openresty.com/scripts/get-xray-priv-lib-repo.sh

sudo sh get-xray-priv-lib-repo.sh -l luajit-plus -t CLIENT_TOKEN

Installing packages

For operating systems using the yum package manager, run the following command to install the private library.

sudo yum install --disablerepo="*" --enablerepo=luajit-plus -y openresty-luajit-plus openresty-luajit-plus-devel

For operating systems using the dnf package manager, execute the following command to install the private libraries.

sudo dnf install --disablerepo="*" --enablerepo=luajit-plus -y openresty-luajit-plus openresty-luajit-plus-devel

For operating systems using the apt package manager, execute the following command to install the private libraries.

sudo apt-get install -y openresty-luajit-plus

For apline OS, execute the following command to install the private libraries.

sudo apk add openresty-luajit-plus openresty-luajit-plus-dev

Recompile OpenResty

You can compile OpenResty by referring to installation. Note that when executing ./configure with the installation path of luajit-plus after the -with-luajit parameter.

wget https://openresty.org/download/$pkg.tar.gz
tar -xzvf $pkg.tar.gz
cd $pkg
./configure --prefix=/opt/openresty \
            --with-luajit=/usr/local/openresty/luajit-plus \
            ...

make
make install