ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Suddenly can't run context
Date: Sun, 18 Nov 2012 22:34:01 -0500 (EST)	[thread overview]
Message-ID: <alpine.LNX.2.02.1211182216250.10974@ybpnyubfg.ybpnyqbznva> (raw)
In-Reply-To: <50A99799.5000609@meahan.net>

[-- Attachment #1: Type: TEXT/PLAIN, Size: 2244 bytes --]

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

[-- Attachment #2: Type: TEXT/PLAIN, Size: 6976 bytes --]


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

[-- Attachment #3: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

  parent reply	other threads:[~2012-11-19  3:34 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-19  0:10 Bill Meahan
2012-11-19  0:53 ` Aditya Mahajan
2012-11-19  2:21   ` Bill Meahan
2012-11-19  3:01     ` Aditya Mahajan
2012-11-19  3:34     ` Aditya Mahajan [this message]
2012-11-19  6:48       ` Mojca Miklavec
2012-11-19 17:09         ` Aditya Mahajan
2012-11-19 22:23           ` Mojca Miklavec
2012-11-19 16:42   ` Suddenly can't run context SOLVED Bill Meahan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.LNX.2.02.1211182216250.10974@ybpnyubfg.ybpnyqbznva \
    --to=adityam@umich.edu \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).