I've been trying to install LuaJIT on Windows 10 for some time following the official guide, and I actually get to install it. For example, if I execute luajit I get into the prompt. Also, luajit -v returns the version of luajit (2.0.4). And I can also execute code with luajit -e <lua code>. However, whenever I try to save bytecode with luajit -b, I get the following message:
luajit: unknown luaJIT command or jit.* modules not installed
I tried to make all sort of installations: using Cygwin, luajit-rocks, MinGW, ... However, no matter what I try, I always get the same result, and I have no clue of what to do.
Could you point me to some potential problems I might be overlooking?
I have on my system Lua 5.1 and Luarocks.
-brequires input and output files. - Nicol Bolasjit\bcsave.lua. Either it's not installed in the correct location, or it's not inpackage.path. Do you maybe overwrite the defaultpackage.pathusing theLUA_PATHenvironment variable? - siffiejoebcsave.luawas not in the directory where they were pointing to. I think I did this long time ago, when I first installed Lua and Luarocks, and I'd totally forgotten about it. Thanks so much, you saved my day! Can you post the answer so I can accept it? - Francis Moy