Hiya! I've decide to (finally) learn ConTeXt and use it exclusively as well as port (some of) the old documents from LaTeX/LyX. In order to do that I've installed context-minimals-git package available for Arch Linux (thank you Aditya! - mahajano yena gatah sa panthah) ;) I've some issues with update (left the note on AUR), but I'm curious what is the proper way to update ConTeXt for MKIV format? (I do not need MKII and want to focus on MKIV exclusively - to help with testing and because I've no need to keep any MK II document.) The wiki page (http://wiki.contextgarden.net/ConTeXt_Minimals) says: * For making MKIV format luatools --selfupdate mtxrun --selfupdate luatools --generate context --make while the package for Archlinux has the following update function: post_upgrade() { source /opt/context-minimals/setuptex mktexlsr texexec --make cont-en metafun texexec --make --xetex echo "*************************************************************" echo "To use ConTeXt minimals run" echo " /opt/context-minimals/setuptex" echo "To use MkIV run" echo " luatools --generate" echo "*************************************************************" } i.e. only "luatools --generate". Anyone can clarify? Sincerely, Gour -- Gour | Hlapicina, Croatia | GPG key: F96FF5F6 ----------------------------------------------------------------
On 22-1-2010 12:14, Gour wrote:
Hiya!
I've decide to (finally) learn ConTeXt and use it exclusively as well as port (some of) the old documents from LaTeX/LyX.
In order to do that I've installed context-minimals-git package available for Arch Linux (thank you Aditya! - mahajano yena gatah sa panthah) ;)
I've some issues with update (left the note on AUR), but I'm curious what is the proper way to update ConTeXt for MKIV format? (I do not need MKII and want to focus on MKIV exclusively - to help with testing and because I've no need to keep any MK II document.)
The wiki page (http://wiki.contextgarden.net/ConTeXt_Minimals) says:
* For making MKIV format
luatools --selfupdate mtxrun --selfupdate luatools --generate context --make
if you download the minimals installer script from the garden and run ./first-update.sh --engine=luatex you only get mkiv related files after that you can update with just ./first-update.sh as the state is remembered Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On Fri, 22 Jan 2010 12:59:39 +0100
"Hans" == Hans Hagen
wrote:
Hans> if you download the minimals installer script from the garden and Hans> run Hans> Hans> ./first-update.sh --engine=luatex Hmm, the build script does not run first-update.sh butit invokes the following: ... msg "Starting download or update of ConTeXt distribution" $srcdir/bin/texlua $srcdir/bin/mtxrun --script $srcdir/bin/mtx-update.lua \ --platform=$_platform --texroot=$srcdir/tex --engine=all --extras=all \ --context=beta --update --force || return 1 Maybe I should wait for Aditya to explain what is he doing... In any case, thank you Hans for your continuing work on ConTeXt/LuaTeX and I sincerely hope this year will bring many new users here... Sincerely, Gour -- Gour | Hlapicina, Croatia | GPG key: F96FF5F6 ----------------------------------------------------------------
On Fri, 22 Jan 2010 12:59:39 +0100
"Hans" == Hans Hagen
wrote:
Hans> if you download the minimals installer script from the garden and Hans> run Hans> Hans> ./first-update.sh --engine=luatex Hmm, the build script does not run first-update.sh but it invokes the following: ... msg "Starting download or update of ConTeXt distribution" $srcdir/bin/texlua $srcdir/bin/mtxrun --script $srcdir/bin/mtx-update.lua \ --platform=$_platform --texroot=$srcdir/tex --engine=all --extras=all \ --context=beta --update --force || return 1 Maybe I should wait for Aditya to explain what is he doing... In any case, thank you Hans for your continuing work on ConTeXt/LuaTeX and I sincerely hope this year will bring many new users here... Sincerely, Gour -- Gour | Hlapicina, Croatia | GPG key: F96FF5F6 ----------------------------------------------------------------
On Fri, 22 Jan 2010 12:59:39 +0100
"Hans" == Hans Hagen
wrote:
Hans> if you download the minimals installer script from the garden and Hans> run Hans> Hans> ./first-update.sh --engine=luatex Hmm, the build script does not run first-update.sh but it invokes the following: ... msg "Starting download or update of ConTeXt distribution" $srcdir/bin/texlua $srcdir/bin/mtxrun --script $srcdir/bin/mtx-update.lua \ --platform=$_platform --texroot=$srcdir/tex --engine=all --extras=all \ --context=beta --update --force || return 1 Maybe I should wait for Aditya to explain what is he doing... In any case, thank you Hans for your continuing work on ConTeXt/LuaTeX and I sincerely hope this year will bring many new users here... Sincerely, Gour p.s. Excuse me for sending it twice to the list instead of using Gmane - somehow 'Reply' did not send to the newsgroup. :-( -- Gour | Hlapicina, Croatia | GPG key: F96FF5F6 ----------------------------------------------------------------
On Fri, 22 Jan 2010, Gour wrote:
On Fri, 22 Jan 2010 12:59:39 +0100
> "Hans" == Hans Hagen
wrote: Hans> if you download the minimals installer script from the garden and Hans> run Hans> Hans> ./first-update.sh --engine=luatex
Hmm, the build script does not run first-update.sh but it invokes the following:
... msg "Starting download or update of ConTeXt distribution" $srcdir/bin/texlua $srcdir/bin/mtxrun --script $srcdir/bin/mtx-update.lua \ --platform=$_platform --texroot=$srcdir/tex --engine=all --extras=all \ --context=beta --update --force || return 1
Maybe I should wait for Aditya to explain what is he doing...
This is the best compromise I could get for running MkIV in a multi-user environment. I do not ask the mtx-update script to generate the formats (the --make flag is missing), because this script is running as root. Generating the formats means that luatex-cache will be generated by root, and then a user will never be able to writing anything in the cache directory. So, I do not generate the formats during the update. In the post-install
post_install() { source /opt/context-minimals/setuptex mktexlsr texexec --make cont-en metafun texexec --make --xetex echo "*************************************************************" echo "To use ConTeXt minimals run" echo ". /opt/context-minimals/setuptex" echo "To use MkIV run" echo "luatools --generate" echo "*************************************************************" }
I generate the pdftex and xetex formats, and ask the user to run luatools --generate. When run for the first time, luatools --generate creates the $TEXMFCACHE directory. Since the command is run by the user, TEXMFCACHE is writable by the user. Once luatools --generate is run, you can simply run "context filename". ConTeXt sees that the formats are wrong and regenerates them on the fly. The first luatools --generate is needed so that mtxrun can find the mtx-context script. (context is just a wrapper around mtx-context.lua). Currently something is going wrong in the installation script. Others have said that you need to "press enter twice" to get it to run. My guess is that something is trying to generate the luatools format, even though I have not asked for it. I will investigate further why this is happening. Aditya
On Fri, 22 Jan 2010, Aditya Mahajan wrote:
Currently something is going wrong in the installation script. Others have said that you need to "press enter twice" to get it to run. My guess is that something is trying to generate the luatools format, even though I have not asked for it. I will investigate further why this is happening.
Can you test the latest version from AUR. It is possible that the earlier build sometimes ended up creating a $HOME/texmf-cache directory as root. If that happened, you will need to forcably remove $HOME/texmf-cache before reinstalling the package. For those who are interested, this is what was happening. If you set TEXMFCACHE to a non-existing directory and run texexec --make cont-en, it asks you if you want to create the TEXMFCACHE directory (even though it is not needed to create the format for pdftex). pacman hides this question (don't know why), so it appeared that the program had hung. If you pressed enter twice (answering texexec's questions as no), the install proceeded as expected. I am getting around this by creating an empty directory in /opt/context-minimals/tex/texmf-cache but setting the TEXMFCACHE to $HOME/texmf-cache:/opt/context-minimals/texmf-cache Thus, texexec is happy because it can /opt/context-minimals/texmf-cache exists, and when the user runs luatools --generate for the first time, $HOME/texmf-cache gets created with the owner as the user. Aditya
On Fri, 22 Jan 2010 14:40:16 -0500 (EST)
"Aditya" == Aditya Mahajan
wrote:
Aditya> It is possible that the earlier build sometimes ended up Aditya> creating a $HOME/texmf-cache directory as root. If that Aditya> happened, you will need to forcably remove $HOME/texmf-cache Aditya> before reinstalling the package. I've removed $HOME/texmf-cache and tried again (with bauerbill, yaourt is becoming too buggy): [root@gaura-nitai gour] bb -Sy context-minimals-git warning: context-minimals-git does not match any package or group in sync db --> Searching for packages in AUR... --> Loading AUR taurball data... warning: about to source /tmp/bauerbill/build/AUR/context-minimals-git/PKGBUILD view [v] backup [b] edit [e] continue [ok] abort [x] ok --> an associated install file was found for context-minimals-git: /tmp/bauerbill/build/AUR/context-minimals-git/context-minimals-git.install view [v] backup [b] edit [e] continue [ok] abort [x] ok --> Loading ABS taurball data... --> detected PKGDEST in /etc/makepkg.conf --> Determining sizes of source files... --> Building context-minimals-git... --> Installing /var/abs/local/gaur/context-minimals-git-20100122-1-x86_64.pkg.tar.gz... --> Running pacman: /usr/bin/sudo /usr/bin/pacman --cachedir "/var/cache/pacman/pkg" -U /var/abs/local/gaur/context-minimals-git-20100122-1-x86_64.pkg.tar.gz loading package data... checking dependencies... (1/1) checking for file conflicts [####################################################################################] 100% (1/1) upgrading context-minimals-git [####################################################################################] 100% mktexlsr: Updating /opt/context-minimals/texmf/ls-R... mktexlsr: Updating /opt/context-minimals/texmf-context/ls-R... mktexlsr: Updating /opt/context-minimals/texmf-fonts/ls-R... mktexlsr: Updating /opt/context-minimals/texmf-linux-64/ls-R... mktexlsr: Updating /opt/context-minimals/texmf-local/ls-R... mktexlsr: Done. ^^^^ Here I had to presee Enter twice in order to continue!!!! Should I create the cache path /root/texmf-cache? [yes|no] [no] Should I create the cache path /root/texmf-cache? [yes|no] [no] MTXrun | kpse fallback with progname 'context' initialized in 0.01 seconds TeXExec | using search method 'kpsewhich' TeXExec | updating file database mktexlsr: Updating /opt/context-minimals/texmf/ls-R... mktexlsr: Updating /opt/context-minimals/texmf-context/ls-R... mktexlsr: Updating /opt/context-minimals/texmf-fonts/ls-R... mktexlsr: Updating /opt/context-minimals/texmf-linux-64/ls-R... mktexlsr: Updating /opt/context-minimals/texmf-local/ls-R... mktexlsr: Done. TeXExec | using tex engine pdftex TeXExec | using tex format path /opt/context-minimals/texmf-linux-64/web2c/pdftex TeXExec | generating tex format cont-en This is pdfTeX, Version 3.1415926-1.40.10 (Web2C 2009) (INITEX) \write18 enabled. [...] ^^^^ Here I had to press Enter twice (again)!!!! TeXExec | TeXExec | tex: 23/01/2010 08:56:16
/opt/context-minimals/texmf-linux-64/web2c/pdftex/cont-en.fmt (7366567) TeXExec | mps: 23/01/2010 08:56:16
/opt/context-minimals/texmf-linux-64/web2c/metafun.mem (486776) TeXExec | TeXExec | runtime: 2.726559056
Should I create the cache path /root/texmf-cache? [yes|no] [no] Should I create the cache path /root/texmf-cache? [yes|no] [no] MTXrun | kpse fallback with progname 'context' initialized in 0.01 seconds TeXExec | using search method 'kpsewhich' TeXExec | updating file database mktexlsr: Updating /opt/context-minimals/texmf/ls-R... mktexlsr: Updating /opt/context-minimals/texmf-context/ls-R... mktexlsr: Updating /opt/context-minimals/texmf-fonts/ls-R... mktexlsr: Updating /opt/context-minimals/texmf-linux-64/ls-R... mktexlsr: Updating /opt/context-minimals/texmf-local/ls-R... mktexlsr: Done. TeXExec | using tex engine xetex TeXExec | using tex format path /opt/context-minimals/texmf-linux-64/web2c/xetex TeXExec | generating tex format cont-en This is XeTeX, Version 3.1415926-2.2-0.9995.2 (Web2C 7.5.6) (INITEX) \write18 enabled. After that I run: luatools --generated and attempt to typeset 'hello world example \starttext Hello World šŠ đĐ čČ ćĆ žŽ \stoptext gives: [gour@gaura-nitai tmp] context lt.tex MTXrun | warning: no format found, forcing remake (commandline driven) MTXrun | running command: luatools --generate LuaTools | fileio: variable SELFAUTOLOC set to /usr/bin LuaTools | fileio: variable SELFAUTODIR set to /usr LuaTools | fileio: variable SELFAUTOPARENT set to / LuaTools | fileio: variable TEXMFCNF set to {$SELFAUTODIR,$SELFAUTOPARENT}{,{/share,}/texmf{-local,.local,}/web2c} LuaTools | fileio: loading /usr/share/texmf/web2c/texmf.cnf LuaTools | fileio: preparing configuration for /usr/share/texmf/web2c LuaTools | fileio: configuration saved in /home/gour/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/f7d1b3c25487ab1e1035aff1c53b90da.lua LuaTools | fileio: configuration compiled to /home/gour/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/f7d1b3c25487ab1e1035aff1c53b90da.luc LuaTools | fileio: locating list of /home/gour/.texlive/texmf-config LuaTools | fileio: locating list of /home/gour/.texlive/texmf-var LuaTools | fileio: locating list of /home/gour/texmf LuaTools | fileio: locating list of /usr/share/texmf-config LuaTools | fileio: locating list of /usr/share/texmf-var LuaTools | fileio: locating list of /usr/share/texmf LuaTools | fileio: locating list of /usr/local/share/texmf LuaTools | fileio: locating list of /usr/share/texmf-dist LuaTools | fileio: scanning path /usr/share/texmf-config LuaTools | fileio: 20 files found on 14 directories with 1 uppercase remappings LuaTools | fileio: scanning path /usr/share/texmf-var LuaTools | fileio: 82 files found on 17 directories with 0 uppercase remappings LuaTools | fileio: scanning path /usr/share/texmf LuaTools | fileio: 239 files found on 69 directories with 6 uppercase remappings LuaTools | fileio: scanning path /usr/share/texmf-dist LuaTools | fileio: 18954 files found on 1755 directories with 250 uppercase remappings LuaTools | fileio: preparing files for /usr/share/texmf-dist LuaTools | fileio: files saved in /home/gour/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/5a308100aaf95a99c661562a470a4cf8.lua LuaTools | fileio: files compiled to /home/gour/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/5a308100aaf95a99c661562a470a4cf8.luc LuaTools | fileio: preparing files for /usr/share/texmf LuaTools | fileio: files saved in /home/gour/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/0638a6bb4aac17125bf8bd1aa29dc0c8.lua LuaTools | fileio: files compiled to /home/gour/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/0638a6bb4aac17125bf8bd1aa29dc0c8.luc LuaTools | fileio: preparing files for /usr/share/texmf-config LuaTools | fileio: files saved in /home/gour/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/45e918fe3f51ed7529c2cbeb4365d29c.lua LuaTools | fileio: files compiled to /home/gour/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/45e918fe3f51ed7529c2cbeb4365d29c.luc LuaTools | fileio: preparing files for /usr/share/texmf-var LuaTools | fileio: files saved in /home/gour/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/70b6a76e9484cb4d4a82104f13337043.lua LuaTools | fileio: files compiled to /home/gour/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/70b6a76e9484cb4d4a82104f13337043.luc LuaTools | LuaTools | runtime: 0.189 seconds MTXrun | running command: luatools --make --compile cont-en LuaTools | creating initialization file: cont-en LuaTools | using library path: /usr/share/texmf-dist/tex/context/base LuaTools | using lua libraries: l-string.lua l-lpeg.lua l-table.lua l-boolean.lua l-number.lua l-unicode.lua l-os.lua l-io.lua l-file.lua l-md5.lua l-url.lua l-dir.lua l-utils.lua l-dimen.lua trac-inf.lua trac-tra.lua trac-log.lua luat-env.lua data-res.lua data-inp.lua data-out.lua data-tmp.lua data-con.lua data-use.lua data-tex.lua data-bin.lua data-lua.lua data-ctx.lua luat-fio.lua luat-cnf.lua LuaTools | checking library path /usr/share/texmf-dist/tex/context/base LuaTools | using library path /usr/share/texmf-dist/tex/context/base LuaTools | merging library /usr/share/texmf-dist/tex/context/base/l-string.lua LuaTools | merging library /usr/share/texmf-dist/tex/context/base/l-lpeg.lua LuaTools | merging library /usr/share/texmf-dist/tex/context/base/l-table.lua LuaTools | merging library /usr/share/texmf-dist/tex/context/base/l-boolean.lua LuaTools | merging library /usr/share/texmf-dist/tex/context/base/l-number.lua LuaTools | merging library /usr/share/texmf-dist/tex/context/base/l-unicode.lua LuaTools | merging library /usr/share/texmf-dist/tex/context/base/l-os.lua LuaTools | merging library /usr/share/texmf-dist/tex/context/base/l-io.lua LuaTools | merging library /usr/share/texmf-dist/tex/context/base/l-file.lua LuaTools | merging library /usr/share/texmf-dist/tex/context/base/l-md5.lua LuaTools | merging library /usr/share/texmf-dist/tex/context/base/l-url.lua LuaTools | merging library /usr/share/texmf-dist/tex/context/base/l-dir.lua LuaTools | merging library /usr/share/texmf-dist/tex/context/base/l-utils.lua LuaTools | merging library /usr/share/texmf-dist/tex/context/base/l-dimen.lua LuaTools | merging library /usr/share/texmf-dist/tex/context/base/trac-inf.lua LuaTools | merging library /usr/share/texmf-dist/tex/context/base/trac-tra.lua LuaTools | merging library /usr/share/texmf-dist/tex/context/base/trac-log.lua LuaTools | merging library /usr/share/texmf-dist/tex/context/base/luat-env.lua LuaTools | merging library /usr/share/texmf-dist/tex/context/base/data-res.lua LuaTools | merging library /usr/share/texmf-dist/tex/context/base/data-inp.lua LuaTools | merging library /usr/share/texmf-dist/tex/context/base/data-out.lua LuaTools | merging library /usr/share/texmf-dist/tex/context/base/data-tmp.lua LuaTools | merging library /usr/share/texmf-dist/tex/context/base/data-con.lua LuaTools | merging library /usr/share/texmf-dist/tex/context/base/data-use.lua LuaTools | merging library /usr/share/texmf-dist/tex/context/base/data-tex.lua LuaTools | merging library /usr/share/texmf-dist/tex/context/base/data-bin.lua LuaTools | merging library /usr/share/texmf-dist/tex/context/base/data-lua.lua LuaTools | merging library /usr/share/texmf-dist/tex/context/base/data-ctx.lua LuaTools | merging library /usr/share/texmf-dist/tex/context/base/luat-fio.lua LuaTools | merging library /usr/share/texmf-dist/tex/context/base/luat-cnf.lua LuaTools | saving merge from cont-en.lua LuaTools | using compiled initialization file: cont-en.luc LuaTools | using lua initialization file: cont-en.luc LuaTools | running command: luatex --ini --lua="cont-en.luc" "/usr/share/texmf-dist/tex/context/base/cont-en.tex" \\dump cont-en.luc: bad header in precompiled chunk LuaTools | LuaTools | runtime: 0.307 seconds MTXrun | warning: missing status file, forcing remake MTXrun | running command: luatools --generate LuaTools | fileio: variable SELFAUTOLOC set to /usr/bin LuaTools | fileio: variable SELFAUTODIR set to /usr LuaTools | fileio: variable SELFAUTOPARENT set to / LuaTools | fileio: variable TEXMFCNF set to {$SELFAUTODIR,$SELFAUTOPARENT}{,{/share,}/texmf{-local,.local,}/web2c} LuaTools | fileio: loading /usr/share/texmf/web2c/texmf.cnf LuaTools | fileio: preparing configuration for /usr/share/texmf/web2c LuaTools | fileio: configuration saved in /home/gour/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/f7d1b3c25487ab1e1035aff1c53b90da.lua LuaTools | fileio: configuration compiled to /home/gour/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/f7d1b3c25487ab1e1035aff1c53b90da.luc LuaTools | fileio: locating list of /home/gour/.texlive/texmf-config LuaTools | fileio: locating list of /home/gour/.texlive/texmf-var LuaTools | fileio: locating list of /home/gour/texmf LuaTools | fileio: locating list of /usr/share/texmf-config LuaTools | fileio: locating list of /usr/share/texmf-var LuaTools | fileio: locating list of /usr/share/texmf LuaTools | fileio: locating list of /usr/local/share/texmf LuaTools | fileio: locating list of /usr/share/texmf-dist LuaTools | fileio: scanning path /usr/share/texmf-config LuaTools | fileio: 20 files found on 14 directories with 1 uppercase remappings LuaTools | fileio: scanning path /usr/share/texmf-var LuaTools | fileio: 82 files found on 17 directories with 0 uppercase remappings LuaTools | fileio: scanning path /usr/share/texmf LuaTools | fileio: 239 files found on 69 directories with 6 uppercase remappings LuaTools | fileio: scanning path /usr/share/texmf-dist LuaTools | fileio: 18954 files found on 1755 directories with 250 uppercase remappings LuaTools | fileio: preparing files for /usr/share/texmf-dist LuaTools | fileio: files saved in /home/gour/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/5a308100aaf95a99c661562a470a4cf8.lua LuaTools | fileio: files compiled to /home/gour/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/5a308100aaf95a99c661562a470a4cf8.luc LuaTools | fileio: preparing files for /usr/share/texmf LuaTools | fileio: files saved in /home/gour/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/0638a6bb4aac17125bf8bd1aa29dc0c8.lua LuaTools | fileio: files compiled to /home/gour/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/0638a6bb4aac17125bf8bd1aa29dc0c8.luc LuaTools | fileio: preparing files for /usr/share/texmf-config LuaTools | fileio: files saved in /home/gour/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/45e918fe3f51ed7529c2cbeb4365d29c.lua LuaTools | fileio: files compiled to /home/gour/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/45e918fe3f51ed7529c2cbeb4365d29c.luc LuaTools | fileio: preparing files for /usr/share/texmf-var LuaTools | fileio: files saved in /home/gour/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/70b6a76e9484cb4d4a82104f13337043.lua LuaTools | fileio: files compiled to /home/gour/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/70b6a76e9484cb4d4a82104f13337043.luc LuaTools | LuaTools | runtime: 0.194 seconds MTXrun | running command: luatools --make --compile cont-en LuaTools | creating initialization file: cont-en LuaTools | using library path: /usr/share/texmf-dist/tex/context/base LuaTools | using lua libraries: l-string.lua l-lpeg.lua l-table.lua l-boolean.lua l-number.lua l-unicode.lua l-os.lua l-io.lua l-file.lua l-md5.lua l-url.lua l-dir.lua l-utils.lua l-dimen.lua trac-inf.lua trac-tra.lua trac-log.lua luat-env.lua data-res.lua data-inp.lua data-out.lua data-tmp.lua data-con.lua data-use.lua data-tex.lua data-bin.lua data-lua.lua data-ctx.lua luat-fio.lua luat-cnf.lua LuaTools | checking library path /usr/share/texmf-dist/tex/context/base LuaTools | using library path /usr/share/texmf-dist/tex/context/base LuaTools | merging library /usr/share/texmf-dist/tex/context/base/l-string.lua LuaTools | merging library /usr/share/texmf-dist/tex/context/base/l-lpeg.lua LuaTools | merging library /usr/share/texmf-dist/tex/context/base/l-table.lua LuaTools | merging library /usr/share/texmf-dist/tex/context/base/l-boolean.lua LuaTools | merging library /usr/share/texmf-dist/tex/context/base/l-number.lua LuaTools | merging library /usr/share/texmf-dist/tex/context/base/l-unicode.lua LuaTools | merging library /usr/share/texmf-dist/tex/context/base/l-os.lua LuaTools | merging library /usr/share/texmf-dist/tex/context/base/l-io.lua LuaTools | merging library /usr/share/texmf-dist/tex/context/base/l-file.lua LuaTools | merging library /usr/share/texmf-dist/tex/context/base/l-md5.lua LuaTools | merging library /usr/share/texmf-dist/tex/context/base/l-url.lua LuaTools | merging library /usr/share/texmf-dist/tex/context/base/l-dir.lua LuaTools | merging library /usr/share/texmf-dist/tex/context/base/l-utils.lua LuaTools | merging library /usr/share/texmf-dist/tex/context/base/l-dimen.lua LuaTools | merging library /usr/share/texmf-dist/tex/context/base/trac-inf.lua LuaTools | merging library /usr/share/texmf-dist/tex/context/base/trac-tra.lua LuaTools | merging library /usr/share/texmf-dist/tex/context/base/trac-log.lua LuaTools | merging library /usr/share/texmf-dist/tex/context/base/luat-env.lua LuaTools | merging library /usr/share/texmf-dist/tex/context/base/data-res.lua LuaTools | merging library /usr/share/texmf-dist/tex/context/base/data-inp.lua LuaTools | merging library /usr/share/texmf-dist/tex/context/base/data-out.lua LuaTools | merging library /usr/share/texmf-dist/tex/context/base/data-tmp.lua LuaTools | merging library /usr/share/texmf-dist/tex/context/base/data-con.lua LuaTools | merging library /usr/share/texmf-dist/tex/context/base/data-use.lua LuaTools | merging library /usr/share/texmf-dist/tex/context/base/data-tex.lua LuaTools | merging library /usr/share/texmf-dist/tex/context/base/data-bin.lua LuaTools | merging library /usr/share/texmf-dist/tex/context/base/data-lua.lua LuaTools | merging library /usr/share/texmf-dist/tex/context/base/data-ctx.lua LuaTools | merging library /usr/share/texmf-dist/tex/context/base/luat-fio.lua LuaTools | merging library /usr/share/texmf-dist/tex/context/base/luat-cnf.lua LuaTools | saving merge from cont-en.lua LuaTools | using compiled initialization file: cont-en.luc LuaTools | using lua initialization file: cont-en.luc LuaTools | running command: luatex --ini --lua="cont-en.luc" "/usr/share/texmf-dist/tex/context/base/cont-en.tex" \\dump cont-en.luc: bad header in precompiled chunk LuaTools | LuaTools | runtime: 0.069 seconds MTXrun | run 1: luatex --fmt="/home/gour/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/formats/cont-en" --lua="/home/gour/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/formats/cont-en.luc" --backend=pdf "./lt.tex" /home/gour/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/formats/cont-en.luc: bad header in precompiled chunk MTXrun | fatal error, return code: 1 So, something is still broken, either with the pkgbuild or with the luatex itself? Sincerely, Gour -- Gour | Hlapicina, Croatia | GPG key: F96FF5F6 ----------------------------------------------------------------
On Sat, 23 Jan 2010, Gour wrote:
On Fri, 22 Jan 2010 14:40:16 -0500 (EST)
> "Aditya" == Aditya Mahajan
wrote: Aditya> It is possible that the earlier build sometimes ended up Aditya> creating a $HOME/texmf-cache directory as root. If that Aditya> happened, you will need to forcably remove $HOME/texmf-cache Aditya> before reinstalling the package.
I've removed $HOME/texmf-cache and tried again (with bauerbill, yaourt is becoming too buggy):
I have been testing with yaourt. I will check bauerbill to see if it is doing something different (it should not)
[root@gaura-nitai gour] bb -Sy
Ah. I usually run with sudo which does not change $HOME.
context-minimals-git warning: context-minimals-git does not match any package or group in sync db --> Searching for packages in AUR... --> Loading AUR taurball data... warning: about to source /tmp/bauerbill/build/AUR/context-minimals-git/PKGBUILD view [v] backup [b] edit [e] continue [ok] abort [x] ok --> an associated install file was found for context-minimals-git: /tmp/bauerbill/build/AUR/context-minimals-git/context-minimals-git.install view [v] backup [b] edit [e] continue [ok] abort [x] ok --> Loading ABS taurball data... --> detected PKGDEST in /etc/makepkg.conf --> Determining sizes of source files... --> Building context-minimals-git... --> Installing /var/abs/local/gaur/context-minimals-git-20100122-1-x86_64.pkg.tar.gz... --> Running pacman: /usr/bin/sudo /usr/bin/pacman --cachedir "/var/cache/pacman/pkg" -U /var/abs/local/gaur/context-minimals-git-20100122-1-x86_64.pkg.tar.gz loading package data... checking dependencies... (1/1) checking for file conflicts [####################################################################################] 100% (1/1) upgrading context-minimals-git [####################################################################################] 100% mktexlsr: Updating /opt/context-minimals/texmf/ls-R... mktexlsr: Updating /opt/context-minimals/texmf-context/ls-R... mktexlsr: Updating /opt/context-minimals/texmf-fonts/ls-R... mktexlsr: Updating /opt/context-minimals/texmf-linux-64/ls-R... mktexlsr: Updating /opt/context-minimals/texmf-local/ls-R... mktexlsr: Done.
^^^^ Here I had to presee Enter twice in order to continue!!!!
Strange. On my machine I do not need to do this.
generating tex format cont-en This is pdfTeX, Version 3.1415926-1.40.10 [...] /opt/context-minimals/texmf-linux-64/web2c/pdftex/cont-en.fmt [...] /opt/context-minimals/texmf-linux-64/web2c/metafun.mem (486776)
This means that the formats are created correctly.
After that I run: luatools --generated
Is that a typo (--generate), or did your really type --generated? Did you run source /opt/context-minimals/setuptex before that.
and attempt to typeset 'hello world example
\starttext Hello World šŠ đĐ čČ ćĆ žŽ \stoptext
gives:
[gour@gaura-nitai tmp] context lt.tex MTXrun | warning: no format found, forcing remake (commandline driven) MTXrun | running command: luatools --generate LuaTools | fileio: variable SELFAUTOLOC set to /usr/bin
This is the wrong luatools!!! My guess is that you are not running source /opt/context-minimals/setuptex so the path is not reset and you are using luatools from texlive.
LuaTools | fileio: variable SELFAUTODIR set to /usr LuaTools | fileio: variable SELFAUTOPARENT set to / LuaTools | fileio: variable TEXMFCNF set to {$SELFAUTODIR,$SELFAUTOPARENT}{,{/share,}/texmf{-local,.local,}/web2c} LuaTools | fileio: loading /usr/share/texmf/web2c/texmf.cnf LuaTools | fileio: preparing configuration for /usr/share/texmf/web2c
These are texlive paths. What does "which luatools" give? You should get /opt/context-minimals/texmf-linux-64/bin/luatools or /opt/context-minimals/texmf-linux/bin/luatools depending on whether you are running 64bit or 32bit architecture.
MTXrun | fatal error, return code: 1
So, something is still broken, either with the pkgbuild or with the luatex itself?
There is something wrong with PKGBUILD because you still need to press enters during the installation. But once you do that, the installation should go on correctly. However, you are not running the minimals correctly. Context-minimals is installed in parallel to texlive and as such does not add its binaries to the $PATH. This way, you can always run texlive. When you need to run the minimals, you need to execute source /opt/context-minimals/setuptex which sets some environment variables so that the minimal binaries are in $PATH. You always need to source setuptex before you use minimals. If you do not use texlive ever, you can add source /opt/context-minimals/setuptex to your .bashrc (or the rc file for whatever shell you use). If you invoke context from an editor, you can change the editor's startup scripts so that setuptex is sourced before the editor is started. Aditya
On Sat, 23 Jan 2010 13:17:19 -0500 (EST)
"Aditya" ==
wrote:
Aditya> Is that a typo (--generate), or did your really type Aditya> --generated? Typo. Aditya> Did you run source /opt/context-minimals/setuptex before that. Ahh...forgot that. :-( Aditya> This is the wrong luatools!!! My guess is that you are not Aditya> running Aditya> Aditya> source /opt/context-minimals/setuptex Correct. Let me try again...Now it works, but I still have to press Enter twice on two occassions. Aditya> If you do not use texlive ever, you can add Aditya> source /opt/context-minimals/setuptex to your .bashrc Aditya> (or the rc file for whatever shell you use). I had that in my .zshenv, but had to remove it 'cause I still have some old LaTeX/LyX stuff around. Aditya> If you invoke context from an editor, you can change the Aditya> editor's startup scripts so that setuptex is sourced before Aditya> the editor is started. I plan to use it with Emacs/AUCTeX, so will look how to do it there. Sincerely, Gour -- Gour | Hlapicina, Croatia | GPG key: F96FF5F6 ----------------------------------------------------------------
On Sat, 23 Jan 2010, Gour wrote:
On Sat, 23 Jan 2010 13:17:19 -0500 (EST)
> "Aditya" ==
wrote: Correct. Let me try again...Now it works, but I still have to press Enter twice on two occassions.
Another attempt to fix this. Now I just use mtx-update to make the formats. However, this is done during building the package (rather than in the post-install stage). So, you will need to force a package update (pass -f to your package manager).
Aditya> If you invoke context from an editor, you can change the Aditya> editor's startup scripts so that setuptex is sourced before Aditya> the editor is started.
I plan to use it with Emacs/AUCTeX, so will look how to do it there.
The easiest way is to create a script called emacs-context with source /opt/context-minimals/setuptex emacs $@ Aditya
On Sun, 24 Jan 2010 15:54:46 -0500 (EST)
"Aditya" == Aditya Mahajan
wrote:
Aditya> Another attempt to fix this. Now I just use mtx-update to make Aditya> the formats. However, this is done during building the package Aditya> (rather than in the post-install stage). So, you will need to Aditya> force a package update (pass -f to your package manager). Now it works nicely. Thank you. Aditya> The easiest way is to create a script called emacs-context with Aditya> Aditya> source /opt/context-minimals/setuptex Aditya> emacs $@ Thanks. Sincerely, Gour -- Gour | Hlapicina, Croatia | GPG key: F96FF5F6 ----------------------------------------------------------------
On Fri, 22 Jan 2010 13:53:11 -0500 (EST)
"Aditya" == Aditya Mahajan
wrote:
Aditya> This is the best compromise I could get for running MkIV in a Aditya> multi-user environment. I do not ask the mtx-update script to Aditya> generate the formats (the --make flag is missing), because this Aditya> script is running as root. Generating the formats means that Aditya> luatex-cache will be generated by root, and then a user will Aditya> never be able to writing anything in the cache directory. So, I Aditya> do not generate the formats during the update. Thank you for explanation. Aditya> I generate the pdftex and xetex formats, and ask the user to Aditya> run luatools --generate. When run for the first time, luatools Aditya> --generate creates the $TEXMFCACHE directory. Since the command Aditya> is run by the user, TEXMFCACHE is writable by the user. Ahh, cool. Aditya> Once luatools --generate is run, you can simply run "context Aditya> filename". ConTeXt sees that the formats are wrong and Aditya> regenerates them on the fly. The first luatools --generate is Aditya> needed so that mtxrun can find the mtx-context script. (context Aditya> is just a wrapper around mtx-context.lua). Interesting... Sincerely, Gour -- Gour | Hlapicina, Croatia | GPG key: F96FF5F6 ----------------------------------------------------------------
On Fri, Jan 22, 2010 at 12:14, Gour wrote:
Hiya!
* For making MKIV format
luatools --selfupdate mtxrun --selfupdate
--selfupdate is meant for you to be on the safe side. Update mechanism should now update these two files, so it should not be really needed.
luatools --generate context --make
luatools --generate is definitely needed on fresh install (it should be done automatically, but it isn't for some weird md5-related reason I suppose). Once you have mkiv working, the "context --make" is executed automatically in case that formts don't match.
while the package for Archlinux has the following update function:
post_upgrade() { source /opt/context-minimals/setuptex mktexlsr texexec --make cont-en metafun texexec --make --xetex
This is needed for mkii only.
echo "*************************************************************" echo "To use ConTeXt minimals run" echo " /opt/context-minimals/setuptex" echo "To use MkIV run" echo " luatools --generate" echo "*************************************************************" }
i.e. only "luatools --generate".
Anyone can clarify?
I guess that's because mkiv generates new formats automatically (I'm not sure if it also calls luatools --generate in that case, but it could if it doesn't). Mojca
On Fri, 22 Jan 2010 14:01:33 +0100
"Mojca" == Mojca Miklavec
wrote:
Mojca> luatools --generate is definitely needed on fresh install (it Mojca> should be done automatically, but it isn't for some weird Mojca> md5-related reason I suppose). Hmm here is post_install script: post_install() { source /opt/context-minimals/setuptex mktexlsr texexec --make cont-en metafun texexec --make --xetex echo "*************************************************************" echo "To use ConTeXt minimals run" echo " /opt/context-minimals/setuptex" echo "To use MkIV run" echo " "" echo "*************************************************************" } which, if I understand correctly just states to run: luatools --generate to get MKIV format. Mojca> Once you have mkiv working, the "context --make" is executed Mojca> automatically in case that formts don't match. I see...that may be part of explanation we're looking for. Mojca> I guess that's because mkiv generates new formats automatically Mojca> (I'm not sure if it also calls luatools --generate in that case, Mojca> but it could if it doesn't). OK. I hope Aditya will show up here - it's his 'sabji' :-) Sincerely, Gour -- Gour | Hlapicina, Croatia | GPG key: F96FF5F6 ----------------------------------------------------------------
participants (4)
-
Aditya Mahajan
-
Gour
-
Hans Hagen
-
Mojca Miklavec