Comment 1 for bug 622253

Revision history for this message
George (gnwiii) wrote :

I can confirm the probem:

Using a fresh install of 10.4 in a VM, then installing 'context' (which pulls in texlive), attempting to run "context <texfile>" gives:

 "MTXrun | unknown script 'context.lua' or 'mtx-context.lua'"

The problem is that each user needs to run "luatools --generate" before the context command can be used.
The command is a simple wrapper for mtxrun:

$ cat /usr/bin/context
!/bin/sh
mtxrun --script context "$@"

The need to run luatools is explained in README.MarkIV, but it would be preferable to have a more useful
message from "context" as many users will not think to look at the README's, and may resort to ill-advised
attempts to fix the problem, such as running "sudo luatools" or after enabling the "root" account.

The luatools utility can be used to check that mtx-contex.lua is found:

$ luatools mtx-context.lua
/usr/share/texmf/scripts/context/lua/mtx-context.lua