Dear all, With a fresh mind, I tried to install luaTeX in my Mac G5(OSX 10.5) as follows: (based on Thomas's instruction) - updating the ConTeXt - making formats - preparing some files like texlua, texluac, luatools, mtxrun. - made a environment variable in .luatex export TEXMFCACHE="/tmp" export TEXMFCNF="/usr/local/texlive/2007/texmf/web2c" export TEXMF="{/Users/dalyoung/.texlive2007/texmf-config,/Users/ dalyoung/.texlive2007/texmf-var,/Users/dalyoung/Library/texmf,/usr/ local/texlive/2007/texmf-config,/usr/local/texlive/2007/texmf-var,/usr/ local/texlive/2007/texmf,/usr/local/texlive/2007/../texmf-local,/usr/ local/texlive/2007/texmf-dist }" export LUAINPUTS="{/usr/local/texlive/texmf-local/tex/context/base,/ usr/local/texlive/texmf-local/sc ripts/context/lua,/Users/dalyoung/ texmf/scripts}" - run "source .luatex" - run "luatools --generate" it showed a long list without any error message. So far, it looks fine. After the generation, I check the file "cont- new.tex", then it pointed the file in the folder texmf-dist not in the folder texmf-local. I updated the ConTeXt file in the folder texmf-local, but I don't know why it is looking for files under texmf-dist folder not under texmf- local. $ luatools cont-new.tex /usr/local/texlive/2007/texmf-dist/tex/context/base/cont-new.tex I tried to create a format. But "luatools --ini --verbose --compile cont-en" stops with an error message. LuaTools | version 1.1.1 - 2006+ - PRAGMA ADE / CONTEXT LuaTools | loading configuration for /usr/local/texlive/2007/texmf/ web2c from /tmp/luatex-cache/context/5b25423ad16f5b11dc34abcf44e70ed1/ trees/6da32d2ec193ac6d2428d020ce069374 LuaTools | locating list of /Users/dalyoung/.texlive2007/texmf-config LuaTools | locating list of /Users/dalyoung/.texlive2007/texmf-var LuaTools | locating list of /Users/dalyoung/Library/texmf LuaTools | locating list of /usr/local/texlive/2007/texmf-config LuaTools | locating list of /usr/local/texlive/2007/texmf-var LuaTools | locating list of /usr/local/texlive/2007/texmf LuaTools | locating list of /usr/local/texlive/2007/../texmf-local LuaTools | locating list of /usr/local/texlive/2007/texmf-dist ... 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/ local/texlive/2007/texmf-dist/tex/context/base/cont-en.tex" \\dump This is LuaTeX, Version snapshot-0.25.3-2008041819 (Web2C 7.5.6) (INITEX) (/usr/local/texlive/2007/texmf-dist/tex/context/base/cont-en.tex (/usr/local/texlive/2007/../texmf-local/tex/context/base/context.tex (/usr/local/texlive/2007/../texmf-local/tex/context/base/syst-pln.tex) (/usr/local/texlive/2007/../texmf-local/tex/context/base/syst-prm.tex) (/usr/local/texlive/2007/../texmf-local/tex/context/base/luat-env.tex ! LuaTeX error [string "luas[0]"]:1: attempt to call field 'luafilechunk' (a ni l value). \ctxluabyteload ...nvironment.luafilechunk("#1") } \ ...fproductionrun \else \ctxluabyteload {#1}{#2} \fi \global \everyloadluac... l.168 \registerctxluafile{luat-env}{1.001} ? Since I updated the ConTeXt file in the folder texmf-local, but I don'tknow why it is looking for files under texmf-dist. Is there anything wrong in my setup? Thank you for reading. best regards, Dalyoung Jeong