![](https://secure.gravatar.com/avatar/be2030be775f00edb407fe8907d66abf.jpg?s=120&d=mm&r=g)
Has anyone had success running ConTeXt as packaged with Ubuntu? I can't get texexec --lua to find the ConTeXt format files, nor can I figure out how to generate the format files for luatex. XeTeX is similarly flaky. I'm running Ubuntu Hardy alpha in hopes of getting more up-to-date packages; is this a vain hope? --Joel
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Joel C. Salomon wrote:
Has anyone had success running ConTeXt as packaged with Ubuntu? I can't get texexec --lua to find the ConTeXt format files, nor can I figure out how to generate the format files for luatex. XeTeX is similarly flaky. I'm running Ubuntu Hardy alpha in hopes of getting more up-to-date packages; is this a vain hope?
luatools --generate texexec --make --luatex texexec --luatex yourfile.tex ----------------------------------------------------------------- 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 -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/be2030be775f00edb407fe8907d66abf.jpg?s=120&d=mm&r=g)
On Jan 14, 2008 2:26 PM, Hans Hagen
luatools --generate
texexec --make --luatex
texexec --luatex yourfile.tex
Looks like I'm still doing something wrong... chesky@maxwell:~$ sudo luatools --generate LuaTools | skipping /texmf-local/web2c/texmf.cnf LuaTools | skipping /texmf/web2c/texmf.cnf LuaTools | LuaTools | runtime: 0.04 seconds chesky@maxwell:~$ sudo texexec --make --luatex TeXExec | using search method 'kpsewhich' TeXExec | updating file database mktexlsr: Updating /var/lib/texmf/ls-R-TEXMFMAIN... mktexlsr: Updating /var/lib/texmf/ls-R-TEXLIVE... mktexlsr: Updating /var/lib/texmf/ls-R... mktexlsr: Done. LuaTools | version 1.1.1 - 2006+ - PRAGMA ADE / CONTEXT LuaTools | skipping /usr/bin/texmf-local/web2c/texmf.cnf LuaTools | skipping /usr/bin/texmf/web2c/texmf.cnf LuaTools | LuaTools | runtime: 0.05 seconds TeXExec | using tex engine luatex TeXExec | using tex format path /etc/texmf/web2c/luatex TeXExec | generating tex format cont-en LuaTools | no tex file with name cont-en.tex LuaTools | LuaTools | runtime: 0.06 seconds TeXExec | generating tex format cont-nl LuaTools | no tex file with name cont-nl.tex LuaTools | LuaTools | runtime: 0.06 seconds TeXExec | generating tex format mptopdf LuaTools | no tex file with name mptopdf.tex LuaTools | LuaTools | runtime: 0.06 seconds TeXExec | no lua compilations needed TeXExec | using mp engine mpost TeXExec | using mps format path /etc/texmf/web2c TeXExec | generating mps format metafun This is MetaPost, Version 0.993 (Web2C 7.5.6) (INIMP) (/usr/share/texmf/web2c/natural.tcx) (/usr/share/texmf/metapost/context/base/metafun.mp (/usr/share/texmf/metapost/context/base/mp-base.mp Preloading the plain mem file, version 0.63) (/usr/share/texmf/metapost/context/base/mp-tool.mp) (/usr/share/texmf/metapost/context/base/mp-spec.mp) (/usr/share/texmf/metapost/context/base/mp-core.mp) (/usr/share/texmf/metapost/context/base/mp-page.mp) (/usr/share/texmf/metapost/context/base/mp-text.mp) (/usr/share/texmf/metapost/context/base/mp-txts.mp) (/usr/share/texmf/metapost/context/base/mp-shap.mp) (/usr/share/texmf/metapost/context/base/mp-butt.mp) (/usr/share/texmf/metapost/context/base/mp-char.mp) (/usr/share/texmf/metapost/context/base/mp-step.mp) (/usr/share/texmf/metapost/context/base/mp-grph.mp) (/usr/share/texmf/metapost/context/base/mp-figs.mp) (/usr/share/texmf/metapost/context/base/mp-grid.mp (/usr/share/texmf/metapost/context/base/mp-form.mp (/usr/share/texmf-texlive/metapost/base/string.mp) (/usr/share/texmf-texlive/metapost/base/marith.mp (/usr/share/texmf-texlive/metapost/base/string.mp)))) (/usr/share/texmf/metapost/context/base/mp-func.mp) ) Beginning to dump on file metafun.mem (mem=metafun 2008.1.14) at most 3040 strings of total length 40279 48398 memory locations dumped; current usage is 12626&35547 1763 symbolic tokens Transcript written on metafun.log. TeXExec | TeXExec | tex engine path: /etc/texmf/web2c/luatex TeXExec | mps engine path: /etc/texmf/web2c TeXExec | TeXExec | mps: 14/01/2008 14:59:41 > /etc/texmf/web2c/metafun.mem (482060) TeXExec | TeXExec | runtime: 2.967322 chesky@maxwell:~$ texexec --luatex hello.tex TeXExec | processing document 'hello.tex' TeXExec | no ctx file found TeXExec | tex processing method: context TeXExec | TeX run 1 TeXExec | writing option file hello.top TeXExec | using randomseed 23 TeXExec | tex engine: luatex TeXExec | tex format: cont-en LuaTools | using format name /home/chesky/luatex-cache/context/formats/cont-en.fmt LuaTools | no luc/lua with name /home/chesky/luatex-cache/context/formats/cont-en LuaTools | LuaTools | runtime: 0.06 seconds TeXUtil | unable to locate hello.tui TeXUtil | shortcuts : 0 TeXUtil | expansions: 0 TeXUtil | reductions: 0 TeXUtil | divisions : 0 TeXUtil | loaded files: 0 TeXUtil | temporary files: 0 TeXUtil | commands: 0 TeXUtil | programs: 0 TeXUtil | tuo file saved TeXExec | TeX run 2 TeXExec | writing option file hello.top TeXExec | using randomseed 23 TeXExec | tex engine: luatex TeXExec | tex format: cont-en LuaTools | using format name /home/chesky/luatex-cache/context/formats/cont-en.fmt LuaTools | no luc/lua with name /home/chesky/luatex-cache/context/formats/cont-en LuaTools | LuaTools | runtime: 0.05 seconds TeXUtil | unable to locate hello.tui TeXUtil | shortcuts : 0 TeXUtil | expansions: 0 TeXUtil | reductions: 0 TeXUtil | divisions : 0 TeXUtil | loaded files: 0 TeXUtil | temporary files: 0 TeXUtil | commands: 0 TeXUtil | programs: 0 TeXUtil | tuo file saved TeXExec | runtime: 0.463467 chesky@maxwell:~$ Any tips? --Joel
![](https://secure.gravatar.com/avatar/a0f6b595b0e3b7f3abba19eeb8261fc2.jpg?s=120&d=mm&r=g)
Where to set it? Just as a UNIX environment variable
Yes.
(presumably in my .profile or similar)
First try it on from your shell before hardcoding it in your profile; it would be best not to set it at all, but for the moment we have no other choice.
as a kpse variable (which I don't know how to set)?
In texmf.cnf -- and actually, all kpathsea variables can be overridden in the environment, but this is of no relevance then, because Mark IV doesn't use kpathsea at all. Arthur
![](https://secure.gravatar.com/avatar/be2030be775f00edb407fe8907d66abf.jpg?s=120&d=mm&r=g)
On Jan 14, 2008 3:16 PM, Arthur Reutenauer
You probably should set TEXMFCACHE as well.
chesky@maxwell:~$ mkdir .texmf-cache chesky@maxwell:~$ export TEXMFCACHE=~/.texmf-cache chesky@maxwell:~$ kpsewhich --expand-var '$TEXMFCACHE' /home/chesky/.texmf-cache Then I re-ran (without sudo) "luatools --generate", "texexec --make --luatex", and "texexec --luatex hello.tex", and got the same results. That wasn't it. --Joel
![](https://secure.gravatar.com/avatar/c5ae4f9aa0d3a9bd5376e92b322c3e50.jpg?s=120&d=mm&r=g)
On Mon, 14 Jan 2008, Joel C. Salomon wrote:
Has anyone had success running ConTeXt as packaged with Ubuntu? I can't get texexec --lua to find the ConTeXt format files, nor can I figure out how to generate the format files for luatex. XeTeX is similarly flaky. I'm running Ubuntu Hardy alpha in hopes of getting more up-to-date packages; is this a vain hope?
Which version of context and luatex does hardy ship with? In Gusty I had to set TEXMFCNF=/usr/share/texmf/web2c LUAINPUTS=$MYTEXMF/tex/context/base/:$MYTEXMF/scripts/context/lua where $MTEXMF is the directory where I instal the latest context. Both mkii and mkiv work fine with this setup. I have not tried xetex. Aditya
participants (4)
-
Aditya Mahajan
-
Arthur Reutenauer
-
Hans Hagen
-
Joel C. Salomon