3

I've been working on using lua to read a yaml file and print out a nice latex table but I've hit a snag. My lua code uses lyaml installed using luarocks, but luarocks only sees my system lua, which is 5.3. This makes it that when I install luarocks, and try to compile my files using lualatex, it fails. Encouragingly, it points towards the correct installation location, so i know its looking in the right place, but it says that the module is for 5.3, and that 5.2 is required.

It seems that some files in texlive's distribution point towards an option of lua 5.3, and miktex already allows for choosing between 5.2 and 5.3, but I haven't been able to find any information on how to make that change, or if it is indeed possible. Is there a solution to this or do I have to wait for texlive to use luatex compiled with lua 5.3?

This is all done on a fedora 29 system with the current version of texlive 2018.

anthsts
  • 384
  • 5
    By default /usr/local/bin/luatex is a symlink to /usr/local/texlive/2018/bin/x86_64-linux/luatex. You can change that link to /usr/local/texlive/2018/bin/x86_64-linux/luatex53. (You will probably have to rebuild the format using fmtutil-sys --byfmt=lualatex) – Henri Menke Feb 19 '19 at 04:07
  • Oh Wow, thank you! this was exactly what I needed, also, learned something about texlive internals, neat. For anyone else looking for the solution, in fedora the paths are instead /usr/bin/lulatex which is a symbolic link to either /usr/bin/luatex or /usr/bin/lutex53 depending on which version you want (5.2 or 5.3) – anthsts Feb 19 '19 at 14:38
  • Do you happen to have any references on how to get luarocks set up with a luatex installation, without a system lua? – likethevegetable Dec 28 '20 at 01:00
  • Sorry, I don't. I tried looking at the LuaRocks installation guide as well and it doesn't really give any indication of how that could be done – anthsts Dec 29 '20 at 16:25

0 Answers0