Hi, I run into the following error with the new version: 'luatools --generate' results in Error in lua file loading: r:\tex\texmf-mswin\bin\luatools.lua:1402: attempt to call field 'gettimeofday' (a nil value) There seems to be no 'os.gettimeofday' under Windows XP. This patch of luatools.lua works here (better check twice) :D if os.gettimeofday then os.clock = os.gettimeofday local startuptime = os.gettimeofday() function os.runtime() return os.gettimeofday() - startuptime end end -- if os.gettimeofday then -- os.clock = os.gettimeofday -- end -- do -- local startuptime = os.gettimeofday() -- function os.runtime() -- return os.gettimeofday() - startuptime -- end -- end Best wishes, Peter
Arthur Reutenauer schrieb:
Error in lua file loading: r:\tex\texmf-mswin\bin\luatools.lua:1402: attempt to call field 'gettimeofday' (a nil value)
Your LuaTeX is "too old". Take yesterday's beta (0.20).
mhh, I already use this version in my minimal installation. There is no doubt about it.
Arthur ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
On 12/6/07, Peter Rolf
Arthur Reutenauer schrieb:
Error in lua file loading: r:\tex\texmf-mswin\bin\luatools.lua:1402: attempt to call field 'gettimeofday' (a nil value)
Your LuaTeX is "too old". Take yesterday's beta (0.20).
mhh, I already use this version in my minimal installation. There is no doubt about it.
Then perhaps luatools --selfupdate? (only guessing) Mojca
Peter Rolf wrote:
Arthur Reutenauer schrieb:
Error in lua file loading: r:\tex\texmf-mswin\bin\luatools.lua:1402: attempt to call field 'gettimeofday' (a nil value) Your LuaTeX is "too old". Take yesterday's beta (0.20).
mhh, I already use this version in my minimal installation. There is no doubt about it.
Did you forget to copy the new executable to texlua.exe perhaps? os.gettimeofday() is available everywhere except on Solaris. Best wishes, Taco
Arthur Reutenauer wrote:
os.gettimeofday() is available everywhere except on Solaris.
It seems to work, though (at least on my machine :-) And it's in the Solaris 9 libc.
Can you (or someone else) figure out what the C preprocessor defines are for "post-SunOs Solaris"? If that is clear, I can use that. Either that or a volunteer that wants to work on an autofoo patch for me would make this work on almost all modern machines. Best wishes, Taco
Taco Hoekwater schrieb:
Peter Rolf wrote:
Arthur Reutenauer schrieb:
Error in lua file loading: r:\tex\texmf-mswin\bin\luatools.lua:1402: attempt to call field 'gettimeofday' (a nil value) Your LuaTeX is "too old". Take yesterday's beta (0.20). mhh, I already use this version in my minimal installation. There is no doubt about it.
Did you forget to copy the new executable to texlua.exe perhaps?
Bingo! This reminds me, that there are still three identical huge files in my bin directory. Aside from the waste of space such stupid errors can occur. Is this problem solved in the meantime? Thanks anyway, Peter
os.gettimeofday() is available everywhere except on Solaris.
Best wishes, Taco
___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
Peter Rolf wrote:
Taco Hoekwater schrieb:
Peter Rolf wrote:
Arthur Reutenauer schrieb:
Error in lua file loading: r:\tex\texmf-mswin\bin\luatools.lua:1402: attempt to call field 'gettimeofday' (a nil value) Your LuaTeX is "too old". Take yesterday's beta (0.20). mhh, I already use this version in my minimal installation. There is no doubt about it. Did you forget to copy the new executable to texlua.exe perhaps?
Bingo!
This reminds me, that there are still three identical huge files in my bin directory. Aside from the waste of space such stupid errors can occur. Is this problem solved in the meantime?
texlua.bat: @echo off luatex --luaonly %1 Should work. Best wishes, Taco
Taco Hoekwater schrieb:
Peter Rolf wrote:
Taco Hoekwater schrieb:
Peter Rolf wrote:
Arthur Reutenauer schrieb:
Error in lua file loading: r:\tex\texmf-mswin\bin\luatools.lua:1402: attempt to call field 'gettimeofday' (a nil value) Your LuaTeX is "too old". Take yesterday's beta (0.20). mhh, I already use this version in my minimal installation. There is no doubt about it. Did you forget to copy the new executable to texlua.exe perhaps? Bingo!
This reminds me, that there are still three identical huge files in my bin directory. Aside from the waste of space such stupid errors can occur. Is this problem solved in the meantime?
texlua.bat:
@echo off luatex --luaonly %1
Should work.
Yes, I already had a batch sript for this, but the latest mswin binaries contains a texlua.exe. I didn't check, so it's my own fault. Still there is no such solution for texluac.exe. I run ConTeXt in a RAM disk, so I don't like the idea of wasting any space. Time to learn some more luatex. :) Thanks to all of you for the help! Peter
Best wishes, Taco ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
Peter Rolf wrote:
Still there is no such solution for texluac.exe. I run ConTeXt in a RAM disk, so I don't like the idea of wasting any space.
Actually, texluac.bat: @echo off luatex --luaconly %1 but it is not mentioned in the --help output, so I am not surprised you didn't know that. Best wishes, Taco
This reminds me, that there are still three identical huge files in my bin directory. Aside from the waste of space such stupid errors can occur. Is this problem solved in the meantime?
Akira Kakuto distributes "luatex.dll" in his W32TeX distribution, and links all three binaries to them. But it should also be possible to write a simple batch file like texlua.bat calling "luatex --luaonly"; and that way you don't have to remember to copy all three binaries each time (which is equivalent to linking on Unix, and replacing only the LuaTeX binary). I wonder if anyone has already done that? Arthur
Peter Rolf wrote:
This reminds me, that there are still three identical huge files in my bin directory. Aside from the waste of space such stupid errors can occur. Is this problem solved in the meantime?
their size is nothing compared to font files -) 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 -----------------------------------------------------------------
participants (5)
-
Arthur Reutenauer
-
Hans Hagen
-
Mojca Miklavec
-
Peter Rolf
-
Taco Hoekwater