It’s very easy and straight forward to install LuaJIT on Intel(x86_64) or AMD system. We can install it by following the below steps:
$ git clone https://luajit.org/git/luajit.git
$ make && sudo make install
The same steps won’t work on IBM Power Systems because the code is not ported for PPC64 architecture. As a result you will hit upon the following error:
lj_arch.h:327:2: error: #error "No support for PPC64"
#error "No support for PPC64"
^~~~~
lj_arch.h:494:2: error: #error "No support for little-endian PPC32"
#error "No support for little-endian PPC32"
^~~~~
As a fix, there is a separate LuaJIT code base for IBM Power Systems which is ported for PPC64 architecture.
Now you can install LuaJIT on IBM Power Systems using the following steps:
$ git clone https://github.com/PPC64/LuaJIT
$ make && sudo make install