更新并纳入评论中要求的信息:
(按时间倒序排列)
4. (自行)运行日志后cp texlivecnf.lua texmfcnf.lua
查看后selfautoparent:/texmf-context/web2c/
(正如日志所指出的,以及 Max Chernoff2.
在下面要求的),它包含:contextcnf.lua readme.txt texlivecnf.lua
。因此,我复制粘贴texlivecnf.lua
并重命名为texmfcnf.lua
并再次运行context --version
。这次运行日志只有 2 行:
$ context --version
resolvers | caches | path '<...>/tex/texmf-var' created
mtxrun | unknown script 'mtx-context.lua' or 'mtx-mtx-context.lua'
$ mtxrun --generate
resolvers | resolving | variable 'SELFAUTOLOC' set to '<...>/tex/texmf-win64/bin'
...
<lots of things>
...
system | lua | dumping '.../tex/texmf-var/luametatex-cache/context/....lua' into '<...>/tex/texmf-var/luametatex-cache/context/....lud' stripped
resolvers | caching | 'files' compiled to '<...>/tex/texmf-var/luametatex-cache/context/.../
trees/....lud'
mtxrun |
mtxrun | elapsed lua time: 0.111 seconds
$ context --version
mtxrun | unknown script 'mtx-context.lua' or 'mtx-mtx-context.lua'
3. (自行)手动提取运行日志texmf-context/
我可能操之过急,但无论如何,我尝试texmf-context
用手动摘录texmf-context.zip
(112 MiB)替换目录,之后,stdoutcontext --version
确实发生了变化。现在它显示的内容configuration files already identified;; skipping configuration file 'selfautoparent:/texmf-context/web2c/texmfcnf.lua' (no valid format)
不是warning: no lua configuration files found
$ context --version
mtxrun | forcing cache reload
resolvers | resolving | configuration files already identified
resolvers | resolving | skipping configuration file 'selfautoparent:/texmf-context/web2c/texmfcnf.lua' (no valid format)
resolvers | resolving | no texmf paths are defined (using TEXMF)
resolvers | resolving |
mtxrun | the resolver databases are not present or outdated
resolvers | resolving | using suffix based filetype 'lua'
resolvers | resolving | remembering file 'mtx-context.lua' using hash 'lua::mtx-context.lua'
resolvers | resolving | using suffix based filetype 'lua'
resolvers | resolving | remembering file 'mtx-contexts.lua' using hash 'lua::mtx-contexts.lua'
resolvers | resolving | remembered file 'mtx-context.lua'
resolvers | resolving | using suffix based filetype 'lua'
resolvers | resolving | remembering file 'mtx-t-mtx-context.lua' using hash 'lua::mtx-t-mtx-context.lua'
resolvers | resolving | using suffix based filetype 'lua'
resolvers | resolving | remembering file 'mtx-t-mtx-contexts.lua' using hash 'lua::mtx-t-mtx-contexts.lua'
resolvers | resolving | remembered file 'mtx-t-mtx-context.lua'
resolvers | resolving | remembered file 'mtx-context.lua'
mtxrun | unknown script 'mtx-context.lua' or 'mtx-mtx-context.lua'
texmf-context
2.目录内容
我认为在此之后,安装日志(在管理员模式下,在新目录中)也会有所帮助,因为看到上面的截图后想到的一个显而易见的问题是“为什么会发生那样的情况”。
D:\StandalonePrograms\context-win64>install.bat
mtxrun | forcing cache reload
resolvers | resolving | looking for regular 'texmfcnf.lua' on given path 'C:/Users/admin0/texmf/web2c' from specification 'home:texmf/web2c'
resolvers | resolving | looking for regular 'texmfcnf.lua' on given path 'D:/StandalonePrograms/texmf-local/web2c' from specification 'selfautoparent:/texmf-local/web2c'
resolvers | resolving | looking for regular 'texmfcnf.lua' on given path 'D:/StandalonePrograms/texmf-context/web2c' from specification 'selfautoparent:/texmf-context/web2c'
resolvers | resolving | looking for regular 'texmfcnf.lua' on given path 'D:/StandalonePrograms/texmf/web2c' from specification 'selfautoparent:/texmf/web2c'
resolvers | resolving | looking for fallback 'contextcnf.lua' on given path 'C:/Users/admin0/texmf/web2c' from specification 'home:texmf/web2c'
resolvers | resolving | looking for fallback 'contextcnf.lua' on given path 'D:/StandalonePrograms/texmf-local/web2c' from specification 'selfautoparent:/texmf-local/web2c'
resolvers | resolving | looking for fallback 'contextcnf.lua' on given path 'D:/StandalonePrograms/texmf-context/web2c' from specification 'selfautoparent:/texmf-context/web2c'
resolvers | resolving | looking for fallback 'contextcnf.lua' on given path 'D:/StandalonePrograms/texmf/web2c' from specification 'selfautoparent:/texmf/web2c'
resolvers | resolving |
resolvers | resolving | warning: no lua configuration files found
resolvers | resolving | no texmf paths are defined (using TEXMF)
resolvers | resolving |
mtxrun | the resolver databases are not present or outdated
mtx-install | server : lmtx.pragma-ade.com
mtx-install | instance : install-lmtx
mtx-install | platform : win64
mtx-install | system : windows
mtx-install | fetching 'http://lmtx.pragma-ade.com/install-lmtx//texmf.zip'
mtx-install | unzipping 'texmf.zip'
70 files of 703 done, 6960406 bytes, 0.108 seconds
140 files of 703 done, 10371456 bytes, 0.190 seconds
210 files of 703 done, 14124718 bytes, 0.266 seconds
280 files of 703 done, 19504148 bytes, 0.349 seconds
350 files of 703 done, 24662280 bytes, 0.437 seconds
420 files of 703 done, 33169752 bytes, 0.537 seconds
490 files of 703 done, 40851921 bytes, 0.651 seconds
560 files of 703 done, 47678981 bytes, 0.800 seconds
630 files of 703 done, 68321769 bytes, 0.959 seconds
700 files of 703 done, 86640590 bytes, 1.110 seconds
703 files of 703 done, 86661272 bytes, 1.113 seconds
mtx-install | fetching 'http://lmtx.pragma-ade.com/install-lmtx//texmf-context.zip'
mtx-install | unzipping 'texmf-context.zip'
528 files of 5281 done, 87825652 bytes, 1.655 seconds
1056 files of 5281 done, 95725794 bytes, 2.293 seconds
1584 files of 5281 done, 115588528 bytes, 2.940 seconds
2112 files of 5281 done, 123849099 bytes, 3.430 seconds
2640 files of 5281 done, 141160640 bytes, 4.349 seconds
3168 files of 5281 done, 150477455 bytes, 4.901 seconds
3696 files of 5281 done, 158009242 bytes, 5.485 seconds
4224 files of 5281 done, 167500225 bytes, 5.975 seconds
4752 files of 5281 done, 174233998 bytes, 6.481 seconds
5280 files of 5281 done, 180899946 bytes, 7.075 seconds
5281 files of 5281 done, 180912843 bytes, 7.077 seconds
mtx-install | installing tex/texmf-win64, 6 files
mtx-install | skipping tex/texmf-win64/bin/context.exe
mtx-install | new : 18 % : 1315 : tex/texmf-win64/bin/context.lua
mtx-install | new : 36 % : 3046912 : tex/texmf-win64/bin/luametatex.exe
mtx-install | new : 78 % : 7249920 : tex/texmf-win64/bin/luatex.exe
mtx-install | skipping tex/texmf-win64/bin/mtxrun.exe
mtx-install | new : 100 % : 701600 : tex/texmf-win64/bin/mtxrun.lua
mtx-install | current : <...>
mtx-install | target : <...>/tex/texmf-win64/bin
mtx-install | removing : mtxrun.exe
mtx-install | removing : context.exe
mtx-install | copied : mtxrun.exe
mtx-install | copied : context.exe
mtx-install | xbit set : <...>/tex/texmf-win64/bin/luametatex.exe
mtx-install | xbit set : <...>/tex/texmf-win64/bin/luatex.exe
mtx-install | xbit set : <...>/tex/texmf-win64/bin/mtxrun.exe
mtx-install | xbit set : <...>/tex/texmf-win64/bin/context.exe
mtx-install | running: <...>/tex/texmf-win64/bin/mtxrun.exe --generate
resolvers | resolving | variable 'SELFAUTOLOC' set to '<...>/tex/texmf-win64/bin'
resolvers | resolving | variable 'SELFAUTODIR' set to '<...>/tex/texmf-win64'
resolvers | resolving | variable 'SELFAUTOPARENT' set to '<...>/tex'
resolvers | resolving | variable 'TEXMFCNF' set to ''
resolvers | resolving | variable 'TEXMF' set to ''
resolvers | resolving | variable 'TEXOS' set to 'texmf-win64'
resolvers | resolving |
resolvers | resolving | using configuration specification 'home:texmf/web2c;selfautoparent:/texmf-local/web2c;selfautoparent:/texmf-context/web2c;selfautoparent:/texmf/web2c'
resolvers | resolving |
resolvers | resolving | looking for regular 'texmfcnf.lua' on given path 'C:/Users/admin0/texmf/web2c' from specification 'home:texmf/web2c'
resolvers | resolving | looking for regular 'texmfcnf.lua' on given path '<...>/tex/texmf-local/web2c' from specification 'selfautoparent:/texmf-local/web2c'
resolvers | resolving | looking for regular 'texmfcnf.lua' on given path '<...>/tex/texmf-context/web2c' from specification 'selfautoparent:/texmf-context/web2c'
resolvers | resolving | looking for regular 'texmfcnf.lua' on given path '<...>/tex/texmf/web2c' from specification 'selfautoparent:/texmf/web2c'
resolvers | resolving | looking for fallback 'contextcnf.lua' on given path 'C:/Users/admin0/texmf/web2c' from specification 'home:texmf/web2c'
resolvers | resolving | looking for fallback 'contextcnf.lua' on given path '<...>/tex/texmf-local/web2c' from specification 'selfautoparent:/texmf-local/web2c'
resolvers | resolving | looking for fallback 'contextcnf.lua' on given path '<...>/tex/texmf-context/web2c' from specification 'selfautoparent:/texmf-context/web2c'
resolvers | resolving | looking for fallback 'contextcnf.lua' on given path '<...>/tex/texmf/web2c' from specification 'selfautoparent:/texmf/web2c'
resolvers | resolving |
resolvers | resolving | warning: no lua configuration files found
resolvers | resolving | no texmf paths are defined (using TEXMF)
resolvers | resolving |
mtxrun |
mtxrun | elapsed lua time: 23.604 seconds
mtx-install | running: <...>/tex/texmf-win64/bin/context.exe --make en
mtxrun | forcing cache reload
resolvers | resolving | looking for regular 'texmfcnf.lua' on given path 'C:/Users/admin0/texmf/web2c' from specification 'home:texmf/web2c'
resolvers | resolving | looking for regular 'texmfcnf.lua' on given path '<...>/tex/texmf-local/web2c' from specification 'selfautoparent:/texmf-local/web2c'
resolvers | resolving | looking for regular 'texmfcnf.lua' on given path '<...>/tex/texmf-context/web2c' from specification 'selfautoparent:/texmf-context/web2c'
resolvers | resolving | looking for regular 'texmfcnf.lua' on given path '<...>/tex/texmf/web2c' from specification 'selfautoparent:/texmf/web2c'
resolvers | resolving | looking for fallback 'contextcnf.lua' on given path 'C:/Users/admin0/texmf/web2c' from specification 'home:texmf/web2c'
resolvers | resolving | looking for fallback 'contextcnf.lua' on given path '<...>/tex/texmf-local/web2c' from specification 'selfautoparent:/texmf-local/web2c'
resolvers | resolving | looking for fallback 'contextcnf.lua' on given path '<...>/tex/texmf-context/web2c' from specification 'selfautoparent:/texmf-context/web2c'
resolvers | resolving | looking for fallback 'contextcnf.lua' on given path '<...>/tex/texmf/web2c' from specification 'selfautoparent:/texmf/web2c'
resolvers | resolving |
resolvers | resolving | warning: no lua configuration files found
resolvers | resolving | no texmf paths are defined (using TEXMF)
resolvers | resolving |
mtxrun | the resolver databases are not present or outdated
resolvers | resolving | using suffix based filetype 'lua'
resolvers | resolving | remembering file 'mtx-context.lua' using hash 'lua::mtx-context.lua'
resolvers | resolving | using suffix based filetype 'lua'
resolvers | resolving | remembering file 'mtx-contexts.lua' using hash 'lua::mtx-contexts.lua'
resolvers | resolving | remembered file 'mtx-context.lua'
resolvers | resolving | using suffix based filetype 'lua'
resolvers | resolving | remembering file 'mtx-t-mtx-context.lua' using hash 'lua::mtx-t-mtx-context.lua'
resolvers | resolving | using suffix based filetype 'lua'
resolvers | resolving | remembering file 'mtx-t-mtx-contexts.lua' using hash 'lua::mtx-t-mtx-contexts.lua'
resolvers | resolving | remembered file 'mtx-t-mtx-context.lua'
resolvers | resolving | remembered file 'mtx-context.lua'
mtxrun | unknown script 'mtx-context.lua' or 'mtx-mtx-context.lua'
mtx-install | running: <...>/tex/texmf-win64/bin/context.exe --luatex --generate
mtxrun | forcing cache reload
resolvers | resolving | looking for regular 'texmfcnf.lua' on given path 'C:/Users/admin0/texmf/web2c' from specification 'home:texmf/web2c'
resolvers | resolving | looking for regular 'texmfcnf.lua' on given path '<...>/tex/texmf-local/web2c' from specification 'selfautoparent:/texmf-local/web2c'
resolvers | resolving | looking for regular 'texmfcnf.lua' on given path '<...>/tex/texmf-context/web2c' from specification 'selfautoparent:/texmf-context/web2c'
resolvers | resolving | looking for regular 'texmfcnf.lua' on given path '<...>/tex/texmf/web2c' from specification 'selfautoparent:/texmf/web2c'
resolvers | resolving | looking for fallback 'contextcnf.lua' on given path 'C:/Users/admin0/texmf/web2c' from specification 'home:texmf/web2c'
resolvers | resolving | looking for fallback 'contextcnf.lua' on given path '<...>/tex/texmf-local/web2c' from specification 'selfautoparent:/texmf-local/web2c'
resolvers | resolving | looking for fallback 'contextcnf.lua' on given path '<...>/tex/texmf-context/web2c' from specification 'selfautoparent:/texmf-context/web2c'
resolvers | resolving | looking for fallback 'contextcnf.lua' on given path '<...>/tex/texmf/web2c' from specification 'selfautoparent:/texmf/web2c'
resolvers | resolving |
resolvers | resolving | warning: no lua configuration files found
resolvers | resolving | no texmf paths are defined (using TEXMF)
resolvers | resolving |
mtxrun | the resolver databases are not present or outdated
resolvers | resolving | using suffix based filetype 'lua'
resolvers | resolving | remembering file 'mtx-context.lua' using hash 'lua::mtx-context.lua'
resolvers | resolving | using suffix based filetype 'lua'
resolvers | resolving | remembering file 'mtx-contexts.lua' using hash 'lua::mtx-contexts.lua'
resolvers | resolving | remembered file 'mtx-context.lua'
resolvers | resolving | using suffix based filetype 'lua'
resolvers | resolving | remembering file 'mtx-t-mtx-context.lua' using hash 'lua::mtx-t-mtx-context.lua'
resolvers | resolving | using suffix based filetype 'lua'
resolvers | resolving | remembering file 'mtx-t-mtx-contexts.lua' using hash 'lua::mtx-t-mtx-contexts.lua'
resolvers | resolving | remembered file 'mtx-t-mtx-context.lua'
resolvers | resolving | remembered file 'mtx-context.lua'
mtxrun | unknown script 'mtx-context.lua' or 'mtx-mtx-context.lua'
mtx-install | running: <...>/tex/texmf-win64/bin/context.exe --luatex --make en
mtxrun | forcing cache reload
resolvers | resolving | looking for regular 'texmfcnf.lua' on given path 'C:/Users/admin0/texmf/web2c' from specification 'home:texmf/web2c'
resolvers | resolving | looking for regular 'texmfcnf.lua' on given path '<...>/tex/texmf-local/web2c' from specification 'selfautoparent:/texmf-local/web2c'
resolvers | resolving | looking for regular 'texmfcnf.lua' on given path '<...>/tex/texmf-context/web2c' from specification 'selfautoparent:/texmf-context/web2c'
resolvers | resolving | looking for regular 'texmfcnf.lua' on given path '<...>/tex/texmf/web2c' from specification 'selfautoparent:/texmf/web2c'
resolvers | resolving | looking for fallback 'contextcnf.lua' on given path 'C:/Users/admin0/texmf/web2c' from specification 'home:texmf/web2c'
resolvers | resolving | looking for fallback 'contextcnf.lua' on given path '<...>/tex/texmf-local/web2c' from specification 'selfautoparent:/texmf-local/web2c'
resolvers | resolving | looking for fallback 'contextcnf.lua' on given path '<...>/tex/texmf-context/web2c' from specification 'selfautoparent:/texmf-context/web2c'
resolvers | resolving | looking for fallback 'contextcnf.lua' on given path '<...>/tex/texmf/web2c' from specification 'selfautoparent:/texmf/web2c'
resolvers | resolving |
resolvers | resolving | warning: no lua configuration files found
resolvers | resolving | no texmf paths are defined (using TEXMF)
resolvers | resolving |
mtxrun | the resolver databases are not present or outdated
resolvers | resolving | using suffix based filetype 'lua'
resolvers | resolving | remembering file 'mtx-context.lua' using hash 'lua::mtx-context.lua'
resolvers | resolving | using suffix based filetype 'lua'
resolvers | resolving | remembering file 'mtx-contexts.lua' using hash 'lua::mtx-contexts.lua'
resolvers | resolving | remembered file 'mtx-context.lua'
resolvers | resolving | using suffix based filetype 'lua'
resolvers | resolving | remembering file 'mtx-t-mtx-context.lua' using hash 'lua::mtx-t-mtx-context.lua'
resolvers | resolving | using suffix based filetype 'lua'
resolvers | resolving | remembering file 'mtx-t-mtx-contexts.lua' using hash 'lua::mtx-t-mtx-contexts.lua'
resolvers | resolving | remembered file 'mtx-t-mtx-context.lua'
resolvers | resolving | remembered file 'mtx-context.lua'
mtxrun | unknown script 'mtx-context.lua' or 'mtx-mtx-context.lua'
mtx-install |
mtx-install | tex/texmf : 0 files with 0 bytes installed
mtx-install | tex/texmf-context : 0 files with 0 bytes installed
mtx-install | tex/texmf-win64 : 6 files with 17093571 bytes installed
mtx-install |
mtx-install | ConTeXt LMTX with LuaMetaTeX is still experimental and when you get a crash this
mtx-install | can be due to a mismatch between Lua bytecode and the engine. In that case you can
mtx-install | try the following:
mtx-install |
mtx-install | - wipe the texmf-cache directory
mtx-install | - run: mtxrun --generate
mtx-install | - run: context --make
mtx-install |
mtx-install | When that doesn't solve the problem, ask on the mailing list ([email protected]).
mtx-install |
mtx-install | update, done
Updating installer:
1 file(s) copied.
The system cannot find the path specified.
The system cannot find the path specified.
When you want to use context, you need to initialize the tree with:
D:\StandalonePrograms\context-win64\setpath.bat
You can associate this command with a shortcut to the cmd prompt. Alternatively
you can add
D:\StandalonePrograms\context-win64\tex\texmf-win64\bin
to your PATH variable. If you run from an editor you can specify the full path
to mtxrun.exe:
D:\StandalonePrograms\context-win64\tex\texmf-win64\bin\mtxrun.exe --autogenerate --script context --autopdf ...
If you also want to run LuaTeX and MkIV you can provide --luatex but first the file
database has to be generated (this time with context and not mtxrun):
.
context --luatex --generate
context --luatex --make
.
The following settings were used:
server : lmtx.contextgarden.net,lmtx.pragma-ade.com,lmtx.pragma-ade.nl
instance : install-lmtx
extras :
ownpath : D:\StandalonePrograms\context-win64\
platform : win64
1. 完整日志mtxrun --generate
(根据@Max Chernoff 在评论中的说明):
D:\StandalonePrograms\context-win64>D:\StandalonePrograms\context-win64\tex\texmf-win64\bin\luametatex.exe --luaonly D:\StandalonePrograms\context-win64\bin\mtxrun.lua --generate
resolvers | resolving | variable 'SELFAUTOLOC' set to '<...>/tex/texmf-win64/bin'
resolvers | resolving | variable 'SELFAUTODIR' set to '<...>/tex/texmf-win64'
resolvers | resolving | variable 'SELFAUTOPARENT' set to '<...>/tex'
resolvers | resolving | variable 'TEXMFCNF' set to ''
resolvers | resolving | variable 'TEXMF' set to ''
resolvers | resolving | variable 'TEXOS' set to 'texmf-win64'
resolvers | resolving |
resolvers | resolving | using configuration specification 'home:texmf/web2c;selfautoparent:/texmf-local/web2c;selfautoparent:/texmf-context/web2c;selfautoparent:/texmf/web2c'
resolvers | resolving |
resolvers | resolving | looking for regular 'texmfcnf.lua' on given path 'C:/Users/admin0/texmf/web2c' from specification 'home:texmf/web2c'
resolvers | resolving | looking for regular 'texmfcnf.lua' on given path '<...>/tex/texmf-local/web2c' from specification 'selfautoparent:/texmf-local/web2c'
resolvers | resolving | looking for regular 'texmfcnf.lua' on given path '<...>/tex/texmf-context/web2c' from specification 'selfautoparent:/texmf-context/web2c'
resolvers | resolving | looking for regular 'texmfcnf.lua' on given path '<...>/tex/texmf/web2c' from specification 'selfautoparent:/texmf/web2c'
resolvers | resolving | looking for fallback 'contextcnf.lua' on given path 'C:/Users/admin0/texmf/web2c' from specification 'home:texmf/web2c'
resolvers | resolving | looking for fallback 'contextcnf.lua' on given path '<...>/tex/texmf-local/web2c' from specification 'selfautoparent:/texmf-local/web2c'
resolvers | resolving | looking for fallback 'contextcnf.lua' on given path '<...>/tex/texmf-context/web2c' from specification 'selfautoparent:/texmf-context/web2c'
resolvers | resolving | looking for fallback 'contextcnf.lua' on given path '<...>/tex/texmf/web2c' from specification 'selfautoparent:/texmf/web2c'
resolvers | resolving |
resolvers | resolving | warning: no lua configuration files found
resolvers | resolving | no texmf paths are defined (using TEXMF)
resolvers | resolving |
mtxrun |
mtxrun | elapsed lua time: 0.015 seconds
原文描述:
概括:
context --version
无法在 Windows 上运行;& 显示如下错误:unknown script 'mtx-context.lua' or 'mtx-mtx-context.lua'
the resolver databases are not present or outdated
重复搜索:
- 这tug 邮件列表主题#49028提到了同样的问题 - 但在不同的安装方法的背景下(涉及docker镜像?已在上游修复)
- 这TEX.SE 评论重定向到独立 CLI 安装说明,但对于现已过时MkIV 分布。
- 这TEX.SE 问题再次为 texlive
- 这TEX.SE 答案提及
mtxrun --generate
从已经尝试的步骤中生成了一组错误(即:“变量设置为”、“正在寻找”、“没有 lua 配置”、“没有 TEXMF 路径”)并且没有成功。 - 上下文,窗口标签仅包含过去十年的 10-11 个问题
安装:
- 关注此 ConTeXt LMTX 官方安装指导,
- 我下载了“Windows > x86 64bits”(上下文-win64.zip),并提取
- 然后以普通用户(非管理员)身份在 wezterm 上运行
install.bat
via shellcmd
- 然后我手动将指示的路径(无空格)添加
...\context-win64\tex\texmf-win64\bin
到环境PATH
变量中
使用日志:
现在命令日志尝试实际运行它:
$ # https://wiki.contextgarden.net/First_Document
$ context --version
mtxrun | forcing cache reload
resolvers | resolving | looking for regular 'texmfcnf.lua' on given path '<USERPROFILE>/texmf/web2c' from specification 'home:texmf/web2c'
...
resolvers | resolving | looking for fallback 'contextcnf.lua' on given path '<...>/context-win64/tex/texmf/web2c' from specification 'selfautoparent:/texmf/web2c'
resolvers | resolving |
resolvers | resolving | warning: no lua configuration files found
resolvers | resolving | no texmf paths are defined (using TEXMF)
resolvers | resolving |
mtxrun | the resolver databases are not present or outdated
resolvers | resolving | using suffix based filetype 'lua'
resolvers | resolving | remembering file 'mtx-context.lua' using hash 'lua::mtx-context.lua'
...
resolvers | resolving | remembered file 'mtx-context.lua'
mtxrun | unknown script 'mtx-context.lua' or 'mtx-mtx-context.lua'
$ mtxrun --version
mtxrun | ConTeXt TDS Runner Tool 1.32
mtxrun | source path
$ luametatex --version
This is LuaMetaTeX, Version 2.10.11
...
环境和操作系统:
- 操作系统:Win 10 22H2
- 使用的 shell:bash(MSYS2)
- 现有的 LaTeX 发行版:是的,MiKTeX(它不提供上下文)
安装摘要
- 这
install.bat
执行主要以下 2 个操作:mtxrun --script .../mtx-install.lua
copy /Y ... ...
"%OWNPATH%bin\mtxrun" --script "%OWNPATH%/bin/mtx-install.lua" --update --server=%LMTXSERVER% --instance=%LMTXINSTANCE% --extras="%LMTXEXTRAS%" %*
copy /Y "%OWNPATH%tex\texmf-%PLATFORM%\bin\mtxrun.exe" "%OWNPATH%\bin\mtxrun.exe"
copy /Y "%OWNPATH%tex\texmf-context\scripts\context\lua\mtxrun.lua" "%OWNPATH%\bin\mtxrun.lua"
copy /Y "%OWNPATH%tex\texmf-context\scripts\context\lua\mtx-install.lua" "%OWNPATH%\bin\mtx-install.lua"
第二步总结:
Updating installer:
1 file(s) copied.
The system cannot find the path specified.
The system cannot find the path specified.
第一步总结:
- 它生成的用于获取文件的链接是(原文如此,双斜杠):
- 第一步中,以下设定序列(重新格式化)重复了约 5 次:
resolvers | resolving |
looking for regular ...
looking for fallback ...
warning: no lua configuration files found
no texmf paths are defined (using TEXMF)
mtxrun | the resolver databases are not present or outdated
- 第一步中其他值得注意的内容如下(重新格式化):
mtx-install |:
installing tex/texmf-win64, 6 files
xbit set : <...>/context-win64/tex/texmf-win64/bin/luametatex.exe
running: <...>/context-win64/tex/texmf-win64/bin/mtxrun.exe --generate
resolvers | resolving |:
variable 'SELFAUTOLOC' set to '<...>/context-win64/tex/texmf-win64/bin'
variable 'SELFAUTODIR' set to '<...>/context-win64/tex/texmf-win64'
variable 'SELFAUTOPARENT' set to '<...>/context-win64/tex'
variable 'TEXMFCNF' set to ''
variable 'TEXMF' set to ''
variable 'TEXOS' set to 'texmf-win64'
mtx-install |:
tex/texmf : 0 files with 0 bytes installed
tex/texmf-context : 0 files with 0 bytes installed
tex/texmf-win64 : 6 files with 17079747 bytes installed
mtx-install |:
[in case of crash] try the following:
- wipe the texmf-cache directory
- run: mtxrun --generate
- run: context --make
update, done
答案1
这些步骤并不能解决全部问题,而只能解决部分问题。
动机/驱动因素:
您的文件夹中有哪些文件
context-win64/tex/texmf-context/web2c/
?
@Max Chernoff评论
msys2
给定的命令使用 GNU 实用程序,通过或使用它们git-bash
;但措辞说明应该清楚,以表明所需的文件资源管理器操作。
- 导航到安装目录。检查
./tex/tex-context/
目录的内容:
$ # ls -1sap tex/tex-context/ #