In the LuaJIT source distribution, there is a folder called ‘libs’
which contain necessary Lua files. Rename this as ‘jit’.
Make a folder in the same directory as luajit.exe and call it ‘lua’;
copy the ‘jit’ folder into ‘lua’.
The ‘lua’ folder will be where LuaJIT will initially look for Lua
packages; now it contains the jit package and ‘luajit -b’ will work
and show you how to compile files to bytecode.
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/188458.html原文链接:https://javaforall.net