On Sun, 18 Nov 2012, Bill Meahan wrote:
2. Something is messed up in $HOME/texmf or $HOME/.texlive2012. Rename
these directories to something different and try again.
Done that several times -- no dice
I normally do not use TL, but looked into it, and the texmfcnf.lua script
distributed with texlive does not look right. I am attaching the output of
mtxrun --generate that I get. Note the following liines:
resolvers | resolving | variable 'SELFAUTOLOC' set to '/usr/bin'
resolvers | resolving | variable 'SELFAUTODIR' set to '/usr'
resolvers | resolving | variable 'SELFAUTOPARENT' set to '.'
resolvers | resolving | variable 'TEXMFCNF' set to ''
resolvers | resolving | variable 'TEXMF' set to ''
resolvers | resolving | variable 'TEXOS' set to '/usr'
....
resolvers | resolving | found configuration file
'/usr/share/texmf/web2c/texmfcnf.lua'
....
resolvers | resolving | loading configuration file
'selfautodir:/share/texmf/web2c/texmfcnf.lua'
...
Now, the /usr/share/texmf/web2c/texmfcnf.lua file says:
TEXMFSYSVAR = "selfautoparent:texmf-var",
TEXMFVAR = "home:.texlive2012/texmf-var",
....
TEXMFMAIN = "selfautoparent:texmf",
TEXMFDIST = "selfautoparent:texmf-dist",
....
Note from the mtxrun that selfautoparent is set to '', therefore,
TEXMFMAIN is set to 'texmf' and TEXMFDIST is set to 'texmf-dist'. And
therefore, `mtxrun --generate` is not scanning the right trees, therefore
does not build a cache of the right trees, and consequently, cannot find
mtx-context.lua.
To check my theory, I followed the following steps:
1. Create a directory ~/mytexmfcnf and copied the texmfcnf.lua file from
/usr/share/texmf/web2c/ to this directory.
2. Open ~/mytexmfcnf/texmfcnf.lua and change
%s/selfautoparent:/\/usr\/share\/
3. Run
TEXMFCNF=~/mytexmfcnf mtxrun --generate
4. Run
TEXMFCNF=~/mytexmfcnf context --version
which then gives
mtx-context | ConTeXt Process Management 0.52
mtx-context |
mtx-context | main context file:
/usr/share/texmf-dist/tex/context/base/context.mkiv
mtx-context | current version: 2012.05.30 11:26
So I wonder how does context (MkIV) work at all with TL2012!
Aditya
resolvers | resolving | variable 'SELFAUTOLOC' set to '/usr/bin'
resolvers | resolving | variable 'SELFAUTODIR' set to '/usr'
resolvers | resolving | variable 'SELFAUTOPARENT' set to '.'
resolvers | resolving | variable 'TEXMFCNF' set to ''
resolvers | resolving | variable 'TEXMF' set to ''
resolvers | resolving | variable 'TEXOS' set to '/usr'
resolvers | resolving |
resolvers | resolving | using configuration specification
'home:texmf/web2c;{selfautoloc:,selfautoloc:/share/texmf-local/web2c,selfautoloc:/share/texmf/web2c,selfautoloc:/texmf-local/web2c,selfautoloc:/texmf/web2c,selfautodir:,selfautodir:/share/texmf-local/web2c,selfautodir:/share/texmf/web2c,selfautodir:/texmf-local/web2c,selfautodir:/texmf/web2c,selfautoparent:/../texmf-local/web2c,selfautoparent:,selfautoparent:/share/texmf-local/web2c,selfautoparent:/share/texmf/web2c,selfautoparent:/texmf-local/web2c,selfautoparent:/texmf/web2c}'
resolvers | resolving |
resolvers | resolving | unknown configuration file
'/home/adityam/texmf/web2c/texmfcnf.lua'
resolvers | resolving | unknown configuration file '/usr/bin/texmfcnf.lua'
resolvers | resolving | unknown configuration file
'/usr/bin/share/texmf-local/web2c/texmfcnf.lua'
resolvers | resolving | unknown configuration file
'/usr/bin/share/texmf/web2c/texmfcnf.lua'
resolvers | resolving | unknown configuration file
'/usr/bin/texmf-local/web2c/texmfcnf.lua'
resolvers | resolving | unknown configuration file
'/usr/bin/texmf/web2c/texmfcnf.lua'
resolvers | resolving | unknown configuration file '/usr/texmfcnf.lua'
resolvers | resolving | unknown configuration file
'/usr/share/texmf-local/web2c/texmfcnf.lua'
resolvers | resolving | found configuration file
'/usr/share/texmf/web2c/texmfcnf.lua'
resolvers | resolving | unknown configuration file
'/usr/texmf-local/web2c/texmfcnf.lua'
resolvers | resolving | unknown configuration file
'/usr/texmf/web2c/texmfcnf.lua'
resolvers | resolving | unknown configuration file
'./../texmf-local/web2c/texmfcnf.lua'
resolvers | resolving | unknown configuration file './texmfcnf.lua'
resolvers | resolving | unknown configuration file
'./share/texmf-local/web2c/texmfcnf.lua'
resolvers | resolving | unknown configuration file
'./share/texmf/web2c/texmfcnf.lua'
resolvers | resolving | unknown configuration file
'./texmf-local/web2c/texmfcnf.lua'
resolvers | resolving | unknown configuration file
'./texmf/web2c/texmfcnf.lua'
resolvers | resolving |
resolvers | resolving | loading configuration file
'selfautodir:/share/texmf/web2c/texmfcnf.lua'
resolvers | resolving |
resolvers | resolving | locating list of 'home:.texlive2012/texmf-config'
(runtime) (tree:///home:.texlive2012/texmf-config)
resolvers | methods | resolver: method=locators, how=uri, scheme=tree,
argument=tree:///home:.texlive2012/texmf-config
resolvers | trees | locator 'home:.texlive2012/texmf-config' not found
resolvers | resolving | locating list of 'home:texmf' (runtime)
(tree:///home:texmf)
resolvers | methods | resolver: method=locators, how=uri, scheme=tree,
argument=tree:///home:texmf
resolvers | trees | locator '/home/adityam/texmf' found
resolvers | resolving | hash 'home:texmf' appended
resolvers | resolving | locating list of 'selfautoparent:texmf-config'
(cached)
resolvers | methods | resolver: method=locators, how=uri, scheme=file,
argument=selfautoparent:texmf-config
resolvers | files | file locator 'selfautoparent:texmf-config' not found
resolvers | resolving | locating list of 'selfautoparent:texmf-var'
(cached)
resolvers | methods | resolver: method=locators, how=uri, scheme=file,
argument=selfautoparent:texmf-var
resolvers | files | file locator 'selfautoparent:texmf-var' not found
resolvers | resolving | locating list of 'selfautoparent:texmf-project'
(cached)
resolvers | methods | resolver: method=locators, how=uri, scheme=file,
argument=selfautoparent:texmf-project
resolvers | files | file locator 'selfautoparent:texmf-project' not found
resolvers | resolving | locating list of 'selfautoparent:texmf-fonts'
(cached)
resolvers | methods | resolver: method=locators, how=uri, scheme=file,
argument=selfautoparent:texmf-fonts
resolvers | files | file locator 'selfautoparent:texmf-fonts' not found
resolvers | resolving | locating list of 'TEXMFMAIN' (cached)
resolvers | methods | resolver: method=locators, how=uri, scheme=file,
argument=TEXMFMAIN
resolvers | files | file locator 'TEXMFMAIN' not found
resolvers | resolving | locating list of '.' (cached)
resolvers | methods | resolver: method=locators, how=uri, scheme=file,
argument=.
resolvers | files | file locator '.' found as '.'
resolvers | resolving | hash '.' appended
resolvers | resolving | locating list of 'selfautoparent:texmf-dist'
(cached)
resolvers | methods | resolver: method=locators, how=uri, scheme=file,
argument=selfautoparent:texmf-dist
resolvers | files | file locator 'selfautoparent:texmf-dist' not found
resolvers | resolving |
resolvers | methods | resolver: method=generators, how=uri, scheme=file,
argument=home:texmf
resolvers | expansions | scanning path 'home:texmf', branch 'home:texmf'
resolvers | expansions | 6200 files found on 1279 directories with 115
uppercase remappings
resolvers | methods | resolver: method=generators, how=uri, scheme=file,
argument=.
resolvers | expansions | scanning path '.', branch '.'
resolvers | expansions | 5127 files found on 257 directories with 445
uppercase remappings
resolvers | resolving |
resolvers | resolving | not saving runtime tree 'home:texmf'
resolvers | resolving | saving tree '.'
resolvers | caches | hashing tree ., hash 5058f1af8388633f609cadb75a75dc9d
resolvers | caches | hashing tree
selfautodir:/share/texmf/web2c/texmfcnf.lua, hash
f919750633122078d706dd10f1cfd39b
resolvers | caching | preparing 'files' for '.'
resolvers | caching | category 'files', cachename '.' saved in
'/home/adityam/texmf-cache/luatex-cache/context/f919750633122078d706dd10f1cfd39b/trees/5058f1af8388633f609cadb75a75dc9d.lua'
system | logs | lua: compiling
/home/adityam/texmf-cache/luatex-cache/context/f919750633122078d706dd10f1cfd39b/trees/5058f1af8388633f609cadb75a75dc9d.lua
into
/home/adityam/texmf-cache/luatex-cache/context/f919750633122078d706dd10f1cfd39b/trees/5058f1af8388633f609cadb75a75dc9d.luc
resolvers | caching | 'files' compiled to
'/home/adityam/texmf-cache/luatex-cache/context/f919750633122078d706dd10f1cfd39b/trees/5058f1af8388633f609cadb75a75dc9d.luc'
mtxrun |
mtxrun | runtime: 0.153 seconds
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________