Am Sonntag, den 23.01.2011, 20:50 -0500 schrieb Aditya Mahajan: > On Mon, 24 Jan 2011, Paul Menzel wrote:
> > I am running a 32-bit system with a 64-bit kernel. So relying on > > > > uname -m > > > > to determine the architecture leads to problems [1]. > > > > So I do `cpu = "i686` manually in `first-setup.sh` but I still do get > > the the following error message. > > > > sent 1145 bytes received 8908331 bytes 774737.04 bytes/sec > > total size is 31230200 speedup is 3.51 > > > > MTXrun | mtx update: updating mtxrun for linux: rsync -tgo --chmod=a+x > > /opt/context/tex/texmf-context/scripts/context/lua/mtxrun.lua > > /opt/context/tex/texmf-linux/bin/mtxrun > > MTXrun | run: rsync -tgo --chmod=a+x > > /opt/context/tex/texmf-context/scripts/context/lua/mtxrun.lua > > /opt/context/tex/texmf-linux/bin/mtxrun > > → MTXrun | no 'texmf-linux-64' under tree /opt/context/tex > > When you want to use context, you need to initialize the tree by typing: > > > > . /opt/context/tex/setuptex > > > > `first-setup.sh` executes the following command > > > > # download or update the distribution > > # you may remove the --context=beta switch if you want to use "current" > > mtxrun --verbose --script ./bin/mtx-update.lua --update --make --force > > --engine=all --context=beta --platform=$platform --texroot=$PWD/tex $@ > > > > but `mtxrun` or `mtx-update.lua` does not seem to honor the option > > `--platform` all the way. > > > > I tried to even hardcode `platform` to `linux` in `mtxrun` but it does not > > help.¹ > > > > elseif name == "linux" then > > > > function os.resolvers.platform(t,k) > > -- we sometims have HOSTTYPE set so let's check that first > > local platform, architecture = "", os.getenv("HOSTTYPE") > > or os.resultof("uname -m") or "" > > if find(architecture,"x86_64") then > > platform = "linux-64" > > elseif find(architecture,"ppc") then > > platform = "linux-ppc" > > else > > platform = "linux" > > end > > os.setenv("MTX_PLATFORM",platform) > > os.platform = platform > > → return "linux" > > end > > > > Could you please tell me, where the path for the `texmf` directory is > > determined and how I can force that to a certain platform. > > You could try setting HOSTTYPE to anything other than ppc or x86_64. Thank you for that hint. (It looks like I overlooked that `platform` is used beforehand to set `MTX_PLATFORM` and `os.platform`. So `--platform` does not seem to be honored all the way.) Your hint gave me more output but left me with a non-working system. $ HOSTTYPE="linux" mtxrun --verbose --script ./bin/mtx-update.lua --update --make --force --engine=all --context=beta --platform="linux" --texroot=/opt/context/tex MTXrun | fileio: variable 'SELFAUTOLOC' set to '/usr/bin' MTXrun | fileio: variable 'SELFAUTODIR' set to '/usr' MTXrun | fileio: variable 'SELFAUTOPARENT' set to '/' MTXrun | fileio: variable 'TEXMFCNF' set to '{$SELFAUTODIR,$SELFAUTOPARENT}{,{/share,}/texmf{-local,.local,}/web2c}' MTXrun | fileio: skipping 'configuration' for '/usr/share/texmf/web2c' from '/home/joe/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/f7d1b3c25487ab1e1035aff1c53b90da' MTXrun | using script: ./bin/mtx-update.lua MTXrun | state: loaded MTXrun | update: start MTXrun | run: rsync -rpztlv --delete contextgarden.net::'minimals/current/base/tex/ minimals/current/base/metapost/ minimals/current/fonts/common/ minimals/current/fonts/other/ minimals/current/misc/web2c minimals/current/base/xetex/ minimals/current/fonts/new/ minimals/current/fonts/new/ minimals/current/fonts/old/' '/opt/context/tex/texmf' receiving incremental file list sent 140 bytes received 63713 bytes 25541.20 bytes/sec total size is 80642372 speedup is 1262.94 MTXrun | run: rsync -rpztlv --delete contextgarden.net::'minimals/current/context/beta/ minimals/current/context/img/' '/opt/context/tex/texmf-context' receiving incremental file list ./ bibtex/ […] $ . /opt/context/tex/setuptex Setting "/opt/context/tex" as ConTeXt root. $ texexec --version MTXrun | kpse fallback with progname 'context' initialized in 0 seconds $ texexec --version MTXrun | kpse fallback with progname 'context' initialized in 0 seconds $ texexec --lua test.tex # example from [3] MTXrun | kpse fallback with progname 'context' initialized in 0 seconds The whole output with `--verbose` is attached (compressed, as the other message did not make it through). Again there is the following line in there. MTXrun | resolvers: skipping list of '/opt/context/tex/texmf-linux-64' (cached) I also tried to prefix the last two command with `HOSTTYPE="linux"`. Any ideas? Thanks, Paul [3] http://wiki.contextgarden.net/Second_Step
mtxrun.log.7z
Description: application/7z-compressed
signature.asc
Description: This is a digitally signed message part
___________________________________________________________________________________ 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 ___________________________________________________________________________________