Closed rpspringuel closed 6 years ago
While attempting to tackle the issue reported, it seems that a temporary fix has been found.
Please try again the test file after correcting a line in luamplib.lua
:
--- /usr/local/texlive/2018/texmf-dist/tex/luatex/luamplib/luamplib.lua 2018-04-07 06:37:07.000000000 +0900
+++ luamplib/luamplib.lua 2018-04-15 08:23:55.000000000 +0900
@@ -261,7 +261,7 @@
local randomseed = nil
-local mpkpse = kpse.new("luatex", "mpost")
+local mpkpse = kpse.new(arg[0], "mpost")
local special_ftype = {
pfb = "type1 fonts",
That does indeed fix the problem. Thank you.
I'm working on a plugin for an App on a Mac which calls
lualatex
to typeset a small snippet of code in order to make use of the result inside the App (if it's pertinent, it's a render frame in Scribus). As a "security precaution" Mac apps are not given access to a full shell instance with all the normal customizations that one would find when starting Terminal. In particularPATH=/usr/bin:/bin:/usr/sbin:/sbin
. As a result,lualatex
has to be invoked with the full path (/Library/TeX/texbin/lualatex
), and when that is done it works fine. However, if the document attempts to load theluamplib
package, then the following error occurs:The test document was:
Is there anyway to load the
luamplib
package with thePATH
given above, or do I have to find a way to modify thePATH
from inside the App?Note: I can duplicate the error in Terminal simply by setting
PATH
as indicated.macOS 10.13.4 TeXLive 2017 fully updated (to frozen state)