From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/36529 Path: news.gmane.org!not-for-mail From: The Wizard Newsgroups: gmane.comp.tex.context Subject: Re: Still can't get luatools to work Date: Thu, 13 Sep 2007 13:08:36 -0700 Organization: Sun Client Solutions Message-ID: <46E998C4.8030403@sun.com> References: <46E95ACC.9090204@sun.com> <20070913190055.GA4758@phare.normalesup.org> Reply-To: Mark.Almeida@Sun.COM, mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0756774447==" X-Trace: sea.gmane.org 1189714165 6265 80.91.229.12 (13 Sep 2007 20:09:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 13 Sep 2007 20:09:25 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Sep 13 22:09:10 2007 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1IVuzp-0002Av-Dh for gctc-ntg-context-518@m.gmane.org; Thu, 13 Sep 2007 22:09:05 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 247AC2006F; Thu, 13 Sep 2007 22:08:56 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 10009-01-12; Thu, 13 Sep 2007 22:08:47 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4059B2006A; Thu, 13 Sep 2007 22:08:47 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B12892006A for ; Thu, 13 Sep 2007 22:08:45 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 10009-01-11 for ; Thu, 13 Sep 2007 22:08:41 +0200 (CEST) Original-Received: from brmea-mail-1.sun.com (brmea-mail-1.Sun.COM [192.18.98.31]) by ronja.ntg.nl (Postfix) with ESMTP id 61D0F20069 for ; Thu, 13 Sep 2007 22:08:40 +0200 (CEST) Original-Received: from fe-amer-10.sun.com ([192.18.109.80]) by brmea-mail-1.sun.com (8.13.6+Sun/8.12.9) with ESMTP id l8DK8cJK027263 for ; Thu, 13 Sep 2007 20:08:38 GMT Original-Received: from conversion-daemon.mail-amer.sun.com by mail-amer.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) id <0JOB00L01O0UZS00@mail-amer.sun.com> (original mail from Mark.Almeida@Sun.COM) for ntg-context@ntg.nl; Thu, 13 Sep 2007 14:08:38 -0600 (MDT) Original-Received: from [192.168.1.28] ([67.116.240.47]) by mail-amer.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTPSA id <0JOB00LZLPACAMD0@mail-amer.sun.com> for ntg-context@ntg.nl; Thu, 13 Sep 2007 14:08:37 -0600 (MDT) In-reply-to: <20070913190055.GA4758@phare.normalesup.org> User-Agent: Thunderbird 2.0.0.6 (X11/20070802) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:36529 Archived-At: --===============0756774447== Content-type: text/html; charset=ISO-8859-1 Content-transfer-encoding: 7BIT Arthur Reutenauer wrote:
   luatools --generate
   This is luaTeX, Version 3.141592-beta-0.10.2-2007090506 (Web2C 7.5.6)
   **
   <I have to Control-D out here>
    

  That is not normal. luatools --generate should not start LuaTeX at all;
I now understand what happened: yesterday you reported you changed the
beginning of luatools to contain:

	#!/bin/sh
	luatex --luaonly=luatools.lua "$@"

  That is not correct. If you want luatex to behave as a lua interpreter
you have to call it with "luatex --luaonly" and no equal sign after it;
simply delete that sign and replace it with a space. Or, alternatively,
alter the first two lines of the script to contain "#!/usr/bin/env texlua"
like originally; what is wrong with it?

	Arthur
  
For some reason, the "#!/usr/bin/env <whatever>" does not seem to work on Solaris 10; I also have to modify texmfstart to use "#!/usr/local/bin/ruby" rather than "#!/usr/bin/env ruby".  However, after removing the "=", I get a different error:

luatools --generate
Missing script file

Even if I try the entire command line as given

texlua --luaonly luatools.lua --generate
Missing script file

So I'm not sure what is happening now, maybe LUAINPUTS or LUATEXDIR is wrong?

env | sort | egrep 'LUA|TEX'
LUAINPUTS={/usr/local/texlive/texmf-local/tex/context/base,/usr/local/texlive/texmf-local/scripts/context/lua}
LUATEXDIR=/usr/local/texlive/texmf-local/scripts/context/lua
TEXMF={/usr/local/texlive/texmf-local,/usr/local/texlive/2007/texmf,/usr/local/texlive/2007/texmf-var,/usr/local/texlive/2007/texmf-dist}
TEXMFCACHE=/var/tmp
TEXMFCNF=/usr/local/texlive/2007/texmf/web2c

 luatex --ini --compile cont-en
This is luaTeX, Version 3.141592-beta-0.11.0-2007091309 (Web2C 7.5.6) (INITEX)
(/usr/local/texlive/texmf-local/tex/context/base/cont-en.tex
(/usr/local/texlive/texmf-local/tex/context/base/context.tex
(/usr/local/texlive/texmf-local/tex/context/base/syst-pln.tex)
(/usr/local/texlive/texmf-local/tex/context/base/syst-prm.tex)
(/usr/local/texlive/texmf-local/tex/context/base/luat-env.tex
! LuaTeX error [string "luas[0]"]:1: attempt to index global 'input' (a nil val
ue).
<argument> ...mf.instance,"luat-env.lua","tex")) }
                                                 
\startruntimeluacode ...everyloadluacode #1}\fi #1
                                                 
l.88 \stopruntimectxluacode
                          
? ^D
! Emergency stop.
<argument> ...mf.instance,"luat-env.lua","tex")) }
                                                 
\startruntimeluacode ...everyloadluacode #1}\fi #1
                                                 
l.88 \stopruntimectxluacode
                          

in use: 109 node words from 500
still untouched: 383 node words
size  2 avail list:     4
size  3 avail list:     3
No pages of output.
Transcript written on cont-en.log.



Mark


--===============0756774447== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0756774447==--