need help for the installation of luatools
Hi, all, I have downloaded binary files(lua5_1_2_Darwin89_bin_tar). After unzip, there are 3 files "bin2c5.1, lua5.1, luac5.1". I copied lua5.1 as luatex and texlua in the folder /usr/texbin. I also copied luatools.lua as luatools in the folder /usr/texbin. I updated the ConTeXt and try to install LuaTeX. But, I got an error as following when I issue "luatools". apple: dalyoung$ luatools texlua: /usr/texbin/luatools:4183: attempt to index global 'lua' (a nil value) stack traceback: /usr/texbin/luatools:4183: in main chunk [C]: ? I am using TeXlive installed with i-installer. Please give me some hints to avoid the errors. Thank you. Best regards, Dalyoung
On Sep 12, 2007, at 6:20 AM, Dalyoung Jeong wrote:
Hi, all,
I have downloaded binary files(lua5_1_2_Darwin89_bin_tar).
What are these files? Where did you download them?
After unzip, there are 3 files "bin2c5.1, lua5.1, luac5.1". I copied lua5.1 as luatex and texlua in the folder /usr/texbin.
lua != luatex. You need to download the luatex binaries. Sorry if this isn't helpful, but you need to provide more and more precise information. Thomas
I copied lua5.1 as luatex and texlua in the folder /usr/texbin.
That's not what you should do: lua5.1 is only the lua interpreter, nothing more, and cannot act as LuaTeX (the TeX engine with embedded Lua scripting). Nor can it act as TeXLua, the LuaTeX-aware Lua interpreter. Of course both lua5.1 and texlua are Lua interpreters and this is why luatools superficially works; but the latter has more libraries than lua alone, one of them called 'lua': luatools cannot work without those. What you should do is take the Mac binary for *LuaTeX* and copy it under the different names (texlua and texluac); symlinks are fine, too. Recent binaries are available at http://foundry.supelec.fr/frs/?group_id=10 as both Intel Mac and universal binaries (no PPC-alone binary, sorry). That way, you actually don't need Lua itself (everything you need is built-in into LuaTeX). One you've done that, you can start over again. Feel free to ask questions if you have other problems. Arthur
Dalyoung Jeong wrote:
Hi, all,
I have downloaded binary files(lua5_1_2_Darwin89_bin_tar). After unzip, there are 3 files "bin2c5.1, lua5.1, luac5.1". I copied lua5.1 as luatex and texlua in the folder /usr/texbin. I also copied luatools.lua as luatools in the folder /usr/texbin.
You don't have to install lua itself at all. Luatex is an executable that is both tex and lua rolled into one, and that is the one you need. I have (attempted to) convert the installation section from the Mark IV magazine into a wiki page, I hope that helps: http://wiki.contextgarden.net/install_Mark_IV (the wiki page desparately needs improvement, but it is better than nothing) Best wishes, Taco
participants (4)
-
Arthur Reutenauer
-
Dalyoung Jeong
-
Taco Hoekwater
-
Thomas A. Schmitz