From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/36521 Path: news.gmane.org!not-for-mail From: The Wizard Newsgroups: gmane.comp.tex.context Subject: Still can't get luatools to work Date: Thu, 13 Sep 2007 08:44:12 -0700 Organization: Sun Client Solutions Message-ID: <46E95ACC.9090204@sun.com> 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="===============0739545763==" X-Trace: sea.gmane.org 1189708300 18477 80.91.229.12 (13 Sep 2007 18:31:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 13 Sep 2007 18:31:40 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Thu Sep 13 20:31:33 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 1IVtTR-0006uf-G5 for gctc-ntg-context-518@m.gmane.org; Thu, 13 Sep 2007 20:31:33 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0C6CD1FE2D; Thu, 13 Sep 2007 20:31:27 +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 02891-07-4; Thu, 13 Sep 2007 20:31:15 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6EE851FC7B; Thu, 13 Sep 2007 20:31:15 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id EC5261FC7B for ; Thu, 13 Sep 2007 20:31:11 +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 02891-07-3 for ; Thu, 13 Sep 2007 20:31:06 +0200 (CEST) Original-Received: from brmea-mail-3.sun.com (brmea-mail-3.Sun.COM [192.18.98.34]) by ronja.ntg.nl (Postfix) with ESMTP id 070051FB5E for ; Thu, 13 Sep 2007 17:44:20 +0200 (CEST) Original-Received: from fe-amer-10.sun.com ([192.18.109.80]) by brmea-mail-3.sun.com (8.13.6+Sun/8.12.9) with ESMTP id l8DFiJtZ015210 for ; Thu, 13 Sep 2007 15:44:19 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 <0JOB00001C3ENA00@mail-amer.sun.com> (original mail from Mark.Almeida@Sun.COM) for ntg-context@ntg.nl; Thu, 13 Sep 2007 09:44:19 -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 <0JOB00LNED1PJRC0@mail-amer.sun.com> for ntg-context@ntg.nl; Thu, 13 Sep 2007 09:44:13 -0600 (MDT) 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:36521 Archived-At: --===============0739545763== Content-type: text/html; charset=ISO-8859-1 Content-transfer-encoding: 7BIT All -
    Based on some help I got yesterday, I setup some environment variables to see if I could get MarkIV working; still no joy:

env | sort | egrep 'LUA|TEX'
LUAINPUTS={/usr/local/texlive/texmf-local/scripts/context/lua,/usr/local/texlive/texmf-local/tex/context/base}
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

ctxtools --contextversion
CtxTools | context version: 2007.08.29 19:19 (/usr/local/texlive/texmf-local/tex/context/base/context.tex)
CtxTools | context version: 2007.08.29 19:19 (/usr/local/texlive/texmf-local/tex/context/base/cont-new.tex)

luatools --version
This is luaTeX, Version 3.141592-beta-0.10.2-2007090506

LuaTeX merges and builds upon (parts of) the code from these projects:

tex       by Donald Knuth
etex      by Peter Breitenlohner, Phil Taylor and friends
omega     by John Plaice and Yannis Haralambous
aleph     by Giuseppe Bilotta
pdftex    by Han The Thanh and friends
kpathsea  by Karl Berry, Olaf Weber and others
lua       by Roberto Ierusalimschy, Waldemar Celes,
             Luiz Henrique de Figueiredo
metapost  by John Hobby, Taco Hoekwater and friends.
xpdf      by Derek Noonberg (partial)
fontforge by George Williams (partial)

Some extensions to lua and additional lua libraries are used, as well as
libraries for graphic inclusion. More details can be found in the source.
Code development was sponsored by a grant from Colorado State University
via the 'oriental tex' project, the TeX User Groups, and donations.

The LuaTeX team is Hans Hagen, Hartmut Henkel, Taco Hoekwater.

There is NO warranty. Redistribution of this software is covered by
the terms of the GNU General Public License, version 2. For more
information about these matters, see the file named COPYING and
the LuaTeX source.

Copyright 2007 Taco Hoekwater, the LuaTeX Team.

Compiled with libpng 1.2.15; using libpng 1.2.15
Compiled with zlib 1.2.3; using zlib 1.2.3
Compiled with xpdf version 3.01


texexec --check
TeXExec | current distribution: web2c
TeXExec | context source date: 2007.08.29 19:19
TeXExec | format path: . /usr/local/texlive/texmf-local/web2c/unset /usr/local/texlive/2007/texmf/web2c/unset /usr/local/texlive/2007/texmf-var/web2c/unset /usr/local/texlive/2007/texmf-dist/web2c/unset /usr/local/texlive/texmf-local/web2c /usr/local/texlive/2007/texmf/web2c /usr/local/texlive/2007/texmf-var/web2c /usr/local/texlive/2007/texmf-dist/web2c
TeXExec | start of analysis
TeXExec | end of analysis
TeXExec |
TeXExec | TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD
TeXExec | TeXUtil   | version 9.1.0 - 1997-2005 - PRAGMA ADE/POD
TeXExec | CtxTools | version 1.3.3 - 2004/2006 - PRAGMA ADE/POD

But when I try to setup MarkIV, I still get errors

luatools --generate
This is luaTeX, Version 3.141592-beta-0.10.2-2007090506 (Web2C 7.5.6)
**
<I have to Control-D out here>

luatools --ini --compile --verbose cont-en
This is luaTeX, Version 3.141592-beta-0.10.2-2007090506 (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.


So there is still some issue with my environment or luatex version.

Mark Almeida

--===============0739545763== 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 ___________________________________________________________________________________ --===============0739545763==-- From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/36524 Path: news.gmane.org!not-for-mail From: Arthur Reutenauer Newsgroups: gmane.comp.tex.context Subject: Re: Still can't get luatools to work Date: Thu, 13 Sep 2007 21:00:55 +0200 Message-ID: <20070913190055.GA4758@phare.normalesup.org> References: <46E95ACC.9090204@sun.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1189710091 24492 80.91.229.12 (13 Sep 2007 19:01:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 13 Sep 2007 19:01:31 +0000 (UTC) To: Mark.Almeida@Sun.COM, mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Sep 13 21:01:28 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 1IVtwE-0006wO-AJ for gctc-ntg-context-518@m.gmane.org; Thu, 13 Sep 2007 21:01:18 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C8C5A1FFCB; Thu, 13 Sep 2007 21:01:17 +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 08294-01; Thu, 13 Sep 2007 21:01:08 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 759CA20007; Thu, 13 Sep 2007 21:01:08 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C537F20007 for ; Thu, 13 Sep 2007 21:01:06 +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 07839-05-5 for ; Thu, 13 Sep 2007 21:01:01 +0200 (CEST) Original-Received: from nef2.ens.fr (nef2.ens.fr [129.199.96.40]) by ronja.ntg.nl (Postfix) with ESMTP id 7BD811FFCB for ; Thu, 13 Sep 2007 21:01:00 +0200 (CEST) Original-Received: from phare.normalesup.org (phare.normalesup.org [129.199.129.80]) by nef2.ens.fr (8.13.6/1.01.28121999) with ESMTP id l8DJ0tEw041215 ; Thu, 13 Sep 2007 21:00:55 +0200 (CEST) X-Envelope-To: ntg-context@ntg.nl Original-Received: by phare.normalesup.org (Postfix, from userid 1008) id 8601F3806D; Thu, 13 Sep 2007 21:00:55 +0200 (CEST) Content-Disposition: inline In-Reply-To: <46E95ACC.9090204@sun.com> User-Agent: Mutt/1.5.13 (2006-08-11) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.1.4 (nef2.ens.fr [129.199.96.32]); Thu, 13 Sep 2007 21:00:55 +0200 (CEST) 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:36524 Archived-At: > luatools --generate > This is luaTeX, Version 3.141592-beta-0.10.2-2007090506 (Web2C 7.5.6) > ** > 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 ___________________________________________________________________________________ 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 ___________________________________________________________________________________ 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==--