From: Andrew Starks <andrew.starks@trms.com>
To: ntg-context@ntg.nl
Subject: Updating to Beta Builds of ConTeXt / LuaTeX from tlcontrib breaks MacTeX
Date: Tue, 16 Nov 2010 14:00:15 -0600 [thread overview]
Message-ID: <AANLkTikQEgfArnmzPRCm4610g8eFhKzCASj8eDaHEVzM@mail.gmail.com> (raw)
At Aditya's suggestion, I'm cross-posting this from tex.stackexchange.com
[Executive Summary:
I might be missing something really simple and I might be
overcomplicating something really easy. In short:
1: I installed MacTeX 2010.
2: I updated all packages using the normal trees.
3: I changed my TEXMFHOME variable in
/usr/local/texlive/2010/texmf.cnf to "~/src/texmf", which is where I
keep my custom modules/templates/packages. (This is normally within
our github source control, but hasn't been yet.) and moved the content
from the old directory to the new.
4: I was beating my head against the wall, trying to make font
selection work using typescriptfile/typescript as well as simplefont.
The closest I could get was with simplefont and Palatino spewing
garbage text.
5: I decided to try "http://tlcontrib.metatex.org/" with tlmgr using
"sudo tlmgr --repository http://tlcontrib.metatex.org/2010 update
-all"
6: I "sudo texconfig rehash"ed (seemed okay), "sudo mtxrun --generate"
(seemed okay). Then I "sudo luatools --generate" and got something
that ended with " MTXrun | unknown script 'base.lua' or
'mtx-base.lua'"
7: Just typing "luatools" results in: "MTXrun | unknown script
'base.lua' or 'mtx-base.lua'"
8: I tried editing the two texmfcnf.lua files that I found with:
return {
content = {
TEXMFCACHE = '~/Library/texlive/2010/texmf-var',
TEXMFHOME = '~/src/texmf-trms',
},
TEXMFCACHE = '~/Library/texlive/2010/texmf-var',
}
But had no effect.
That is where I'm at right now. Whenever I try to compile, I get:
MTXrun | warning: no format found, forcing remake (commandline driven)
MTXrun | running command: luatools --generate
MTXrun | unknown script 'base.lua' or 'mtx-base.lua'
MTXrun | running command: luatools --make --compile cont-en
MTXrun | unknown script 'base.lua' or 'mtx-base.lua'
MTXrun | error, no format found with name: cont-en, aborting
MTXrun | total runtime: 0.321
The rest of this email is a more verbose description. Hopefully this
helps you and me, as well. (if only in the documentation department.
:))
] /endexecutive summary %:)
Copied then updated from:
http://tex.stackexchange.com/questions/5454/updating-to-beta-builds-of-context-luatex-from-tlcontrib-breaks-mactex
On a fresh install of MacTeX 2010, I was having issues with `mtxrun`
finding fonts and with fonts in general.
I decided to try to dl the betas. In an earlier
question(http://tex.stackexchange.com/questions/5405/switching-to-context-minimals-missing-last-step-for-mactex-2010
(Thanks Kahled!) I found that the ConTeXt minimals were not proper in
this scenario.
So I followed the advice and used this repository. After running:
sudo tlmgr --repository http://tlcontrib.metatex.org/2010 update -all
...I did everything that I could think of to update the system at
various stages (I'm sure not everything was neutral or helpful)...
sudo texconfig rehash
sudo texconfig init
sudo mtxrun --generate
sudo luatools --generate
The last command is the issue, as it generates:
MTXrun | unknown script 'base.lua' or 'mtx-base.lua'
In my search on the interweb, I found that perhaps `texmfcnf.lua`
needed the following:
return {
content = {
TEXMFCACHE = '~/Library/texlive/2010/texmf-var',
TEXMFHOME = '~/Library/texmf-trms',
},
TEXMFCACHE = '~/Library/texlive/2010/texmf-var',
}
I did this to the file that I located in `/usr/local/texlive/2010/`. I
later found evidence that perhaps another `texmfcnf.lua` file needed
this golden block of code, but I could not find another instance of
this file.
So... whassup? It's a clean install if MacTeX 2010. I wonder what I'm missing.
Once this is solved, I'll post another question about fonts, as I have
yet to get those working with LuaTeX as the engine and `simplefonts`
as the method. `mtxrun` never has anything in its list of fonts
(`mtxrun --script fonts --list --all --pattern=*` or any conceivable
variation) and most font choices don't register at all, or in the odd
case of Palatino, result in garbage text. I have my `OSFONTS` variable
set to `/Library/Fonts`. But alas, for another question. I only post
it here in case the two issues are related.
Thanks everyone!
UPDATE:
I ran `sudo luatex --generate --verbose`
Here is the output:
MTXrun | resolvers: variable 'SELFAUTOLOC' set to
'/usr/local/texlive/2010/bin/x86_64-darwin'
MTXrun | resolvers: variable 'SELFAUTODIR' set to '/usr/local/texlive/2010/bin'
MTXrun | resolvers: variable 'SELFAUTOPARENT' set to '/usr/local/texlive/2010'
MTXrun | resolvers: variable 'TEXMFCNF' set to ''
MTXrun | resolvers: variable 'TEXMF' set to ''
MTXrun | resolvers: variable 'TEXOS' set to 'bin'
MTXrun | resolvers
MTXrun | resolvers: loading configuration file
'/usr/local/texlive/2010/texmfcnf.lua'
MTXrun | resolvers
MTXrun | resolvers: loading configuration file
'/usr/local/texlive/2010/texmf/web2c/texmfcnf.lua'
MTXrun | resolvers
MTXrun | resolvers: locating list of '/Users/andrew/src/texmf-trms' (runtime)
MTXrun | resolvers: handler 'tree:////Users/andrew/src/texmf-trms' ->
'locators' -> 'path=/Users/andrew/src/texmf-trms | noscheme=false |
query= | scheme=tree | original=tree:////Users/andrew/src/texmf-trms |
fragment= | authority='
MTXrun | resolvers: hash 'tree:////Users/andrew/src/texmf-trms' appended
MTXrun | resolvers: skipping list of
'/usr/local/texlive/2010/texmf-project' (cached)
MTXrun | resolvers: skipping list of
'/usr/local/texlive/2010/texmf-fonts' (cached)
MTXrun | resolvers: skipping list of
'/usr/local/texlive/2010/texmf-local' (cached)
MTXrun | resolvers: skipping list of
'/usr/local/texlive/2010/texmf-context' (cached)
MTXrun | resolvers: locating list of '/usr/local/texlive/2010/texmf' (cached)
MTXrun | resolvers: tex locator '/usr/local/texlive/2010/texmf' found
MTXrun | resolvers: hash '/usr/local/texlive/2010/texmf' appended
MTXrun | resolvers: locating list of
'/usr/local/texlive/2010/texmf-dist' (cached)
MTXrun | resolvers: tex locator '/usr/local/texlive/2010/texmf-dist' found
MTXrun | resolvers: hash '/usr/local/texlive/2010/texmf-dist' appended
MTXrun | resolvers
MTXrun | resolvers: handler 'tree:////Users/andrew/src/texmf-trms' ->
'hashers' -> 'path=/Users/andrew/src/texmf-trms | noscheme=false |
query= | scheme=tree | original=tree:////Users/andrew/src/texmf-trms |
fragment= | authority='
MTXrun | resolvers: scanning path '/Users/andrew/src/texmf-trms'
MTXrun | resolvers: 596 files found on 114 directories with 62
uppercase remappings
MTXrun | resolvers: loading 'files' for
'/usr/local/texlive/2010/texmf' from
'/Users/andrew/Library/texlive/2010/texmf-var/luatex-cache/context/210a81d6dcb1059dc80fab3f5470ab7a/trees/1240e363db2f4c53de58379d2b0c6f6b'
MTXrun | resolvers: loading 'files' for
'/usr/local/texlive/2010/texmf-dist' from
'/Users/andrew/Library/texlive/2010/texmf-var/luatex-cache/context/210a81d6dcb1059dc80fab3f5470ab7a/trees/26993469c6208234eef0d0acf8456c4d'
MTXrun | resolvers: using suffix based filetype 'lua'
MTXrun | resolvers: using suffix based filetype 'lua'
MTXrun | resolvers: remembering file 'mtx-base.lua'
MTXrun | resolvers: using suffix based filetype 'lua'
MTXrun | unknown script 'base.lua' or 'mtx-base.lua'
Okay, I see where it's loading
`'/usr/local/texlive/2010/texmf/web2c/texmfcnf.lua'`.
Given that my TEXMFHOME tds is set to `~/src/texmf-trms` I edited it
to say this within `content:`
-- ORIG: TEXMFHOME = "$HOME/texmf", -- "tree:///$HOME/texmf"
TEXMFHOME = "~/src/texmf-trms", -- "tree:///$HOME/texmf"
...and this after, but before `return:` closes:
-- ORIG: TEXMFCACHE = "$SELFAUTOPARENT/texmf-cache", -- for old times sake
TEXMFCACHE = "~/Library/texlive/2010/texmf-var", -- for old times sake
Since I did not change the TEXMFCACHE setting.
(As you may be able to tell by now, I don't know what I'm doing. :) )
Running `sudo luatools --generate --verbose` had the same effect, ending with:
MTXrun | resolvers: using suffix based filetype 'lua'
MTXrun | resolvers: using suffix based filetype 'lua'
MTXrun | resolvers: remembering file 'mtx-base.lua'
MTXrun | resolvers: using suffix based filetype 'lua'
MTXrun | unknown script 'base.lua' or 'mtx-base.lua'
I tried `sudo mtxrun --generate` which seemed to work, but did not
affect `luatools` in any way. I've tried `rehash`ing, then `mtxrun`
then `luatools`. No joy.
Any help would be appreciated. Thanks!
___________________________________________________________________________________
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
___________________________________________________________________________________
next reply other threads:[~2010-11-16 20:00 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-16 20:00 Andrew Starks [this message]
2010-11-17 0:45 ` Mojca Miklavec
2010-11-17 1:01 ` Arthur Reutenauer
2010-11-17 1:06 ` Aditya Mahajan
2010-11-17 8:02 ` Andrew Starks
2010-11-17 10:27 ` Mojca Miklavec
2010-11-17 16:12 ` Andrew Starks
2010-11-17 4:26 ` Andrew Starks
2010-11-17 8:30 ` Alan BRASLAU
2010-11-17 10:13 ` Mojca Miklavec
2010-11-17 9:28 ` Taco Hoekwater
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=AANLkTikQEgfArnmzPRCm4610g8eFhKzCASj8eDaHEVzM@mail.gmail.com \
--to=andrew.starks@trms.com \
--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).