
My apologies, following the "Manual Install" guide indeed does produce a working binary for FreeBSD. The issue was using a terminal session with an outdated $PATH to test, which pointed to the old install. Many thanks. On 2/12/25 20:56, Aswell wrote:
I too am running FreeBSD, and also had the exact same issue after upgrading...
After the upgrade failed, I followed the "Manual Install" instructions from the wiki: https://wiki.contextgarden.net/Manual_Install
Unfortunately, that process resulted in the same error.
Should following the steps in the "Compile" section of the Manual Install wiki page, produce a working FreeBSD binary? Or, am I missing something?
On 2/12/25 15:22, Pavneet Arora via ntg-context wrote:
This worked a charm, Hans! Thank you.
Is there a place I can upload the compiled binary to assist in distribution?
Regards.
------------------------------
Message: 7 Date: Wed, 12 Feb 2025 20:57:21 +0100 From: Hans Hagen
Subject: [NTG-context] Re: Upgrade (and fresh installation) failing with lua error in supp-box.mkxl To: Pavneet Arora via ntg-context Message-ID: <61c102a0-dd25-46e9-b9e3-bd5b153a3282@xs4all.nl> Content-Type: text/plain; charset=UTF-8; format=flowed On 2/12/2025 6:59 PM, Pavneet Arora via ntg-context wrote:
This past weekend I attempted and update on my FreeBSD distribution, and it failed with the following error:
open source > level 1, order 56, name 'supp-box.mkxl' loading > ConTeXt Support Macros / Boxes lua error > lua error on line 43 in file supp-box.mkxl:
token call, execute: ...ext/tex/texmf-context/tex/context/base/mkxl/node-ini.lmt:214: attempt to index a nil value (global 'mathematics') stack traceback: ...ext/tex/texmf-context/tex/context/base/mkxl/node-ini.lmt:214: in metamethod 'index' ...ext/tex/texmf-context/tex/context/base/mkxl/supp-box.lmt:37: in local 'code' ...ext/tex/texmf-context/tex/context/base/mkiv/util-lua.lua:97: in field 'loadedluacode' ...ext/tex/texmf-context/tex/context/base/mkiv/luat-env.lua:108: in field 'luafilechunk' ...ext/tex/texmf-context/tex/context/base/mkxl/luat-cod.lmt:82: in function 'lua.registercode' [ctxlua]:1: in main chunk <empty file> A number should have been here; I inserted '0'. (If you can't figure out why I needed to see a number, look up 'weird error' in the index to The TeXbook.) <<<
I subsequently tried a fresh installation with the same error message.
I haven't seen mention of this elsewhere, and so am assuming that this might be a FreeBSD specific issue? Can you compile the binary from source (in the tree)? The freebsd vm is not running so no bins are made,
Hans
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
------------------------------
Subject: Digest Footer
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________
------------------------------
End of ntg-context Digest, Vol 246, Issue 33 ********************************************
-- Seann Aswell