Re: [NTG-context] Updating LuaTeX after MacTeX-TeXLive 2008 (again)

2008-09-22 Thread Otared Kavian

Hi Mojca,

Many thanks for your attention and insight.
I tried what you said and I put all the instructions you gave in a  
file I am sending you: it is meant (once all the steps work fine) to  
become a file

updating-context.sh
which could be excuted in a Terminal window upon saying
sh updating-context.sh

Now mkii can be updated following your instructions after fixing some  
chmod issues.
If the remaining problems described in the attached file are solved in  
such a way that a non specialist like me can uderstand, then I'll put  
the script and the explanations of the commands on the wiki.

I presume it will be helpful for others too…

Thank you for your time!
Best regards: OK



updating-context
Description: Binary data




On 21 sept. 08, at 22:44, Mojca Miklavec wrote:


On Sat, Sep 20, 2008 at 12:08 PM, Otared Kavian wrote:


On 19 sept. 08, at 20:31, Mojca Miklavec wrote:

On Fri, Sep 19, 2008 at 6:56 PM, Otared Kavian wrote:

Has something changed recently in the ways

TEXMFCNF has to be set?


Thanks to Oliver's pressing on Hans  Taco :), you don't need to set
anything any more.
And yes, that has been changed after TL freeze.


On Mac, the situation with LuaTeX configuration has changed
*considerably* and in some very important ways after ConTeXt  LuaTeX
have been frozen for TeX Live.

Hi Mojca,
Thanks for the information.
How can one find out how to adapt the new parameters (TEXMFCNF, and  
alike)?


I would not adapt anything apart from TEXMFCACHE.


I updated ConTeXt, luatex binary and ConTeXt scripts manually, and it
works fine now, though I never use --updatecontext.

What do you mean by manually? Do you mean unzipping the file
context/current/cont-tmf.zip or context/beta/cont-tmf.zip
into
/usr/local/texlive
or into either of
/usr/local/texlive/2008
or /usr/local/texlive/texmf-local ?
Thanks again for your attention: OK


See the other post. I update ConTeXt directly into
/usr/local/texlive/2008/texmf-dist, though updating into texmf-local
or into ~/.texlive2008 would be just as valid. I update with rsync,
but using the zips is just as fine.

Apart from ConTeXt you also need to update LuaTeX binary (/usr/texbin
= /usr/local/texlive/2008/bin/universal-darwin).
Again - see the other post.

Mojca
___
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
___


___
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
___


Re: [NTG-context] Updating LuaTeX after MacTeX-TeXLive 2008 (again)

2008-09-22 Thread Mojca Miklavec
On Mon, Sep 22, 2008 at 3:05 PM, Otared Kavian wrote:
 Hi Mojca,

 Many thanks for your attention and insight.
 I tried what you said and I put all the instructions you gave in a file I am
 sending you: it is meant (once all the steps work fine) to become a file
 updating-context.sh
 which could be excuted in a Terminal window upon saying
sh updating-context.sh

ctxtools --updatecontext is supposed to do that, but it has some
problems. One thing that needs to be fixed in your script:
- recognising platform should be automatic  paths should be fixed
- you should check first if one really has TL 2008 installed; on other
platforms your assumptions won't work

But on the other hand, it might make more sense to resolve problems
with Norbert's script, and then offer proper updates. Honestly, I
would not like these updating procedures to spread around too much,
since you'll then have people asking you completely weird questions.
TeX Live is not supposed to be updated the way I told you.

 Now mkii can be updated following your instructions after fixing some chmod
 issues.

Those chmod problems should be fixed on the server.

 If the remaining problems described in the attached file are solved in such
 a way that a non specialist like me can uderstand, then I'll put the script
 and the explanations of the commands on the wiki.
 I presume it will be helpful for others too…

You don't need
export TEXMFCNF

 #I added this because the file in question was missing
 # the execute bit
 sudo chmod 755 /usr/texbin/texexec

That should be fixed in ConTeXt zips themselves, but I bet that the
program that Hans uses and 99% of other compression programs do not
allow setting executable bits anywhere. So it might be a good hint to
post-modify files on the garden.


Concerning MKIV: I have found one extremely weird thing in my TL bin:
luatools - ../../texmf-dist/scripts/context/stubs/unix/luatools

This looks a bit problematic to me. Please wait for Taco's or Karl's
answer. I have never noticed that weird thing so far.

Mojca
___
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
___


Re: [NTG-context] Updating LuaTeX after MacTeX-TeXLive 2008 (again)

2008-09-21 Thread Robert Blackstone
Hello Mojca,

I seem to have run into the same or similar problems as Otared Kavian.

I followed the instructions on the ConTeXt wiki, but the command

''luatools --generate'' gives the error message:


'LuaTools | error unable to identify cnf file

LuaTools | error unable to identify cnf file

LuaTools | no cnf files found (TEXMFCNF may not be set/known)

LuaTools |

LuaTools | runtime: 0.008 seconds',


regardless of the directory from which I issue the command, and though there
is a 28 KB file texmf.cnf sitting in /usr/local/texlive/2008/texmf/web2c.

As you succeeded in updating ConTeXt, luatex binary and ConTeXt scripts
manually, could you please share the method with us. I for one am not
sufficiently trained in unix to go there all by myself.

(I'm working on a G4 PowerBook under OSX-10.4.11)


Thank you in advance.

Robert Blackstone
___
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
___


Re: [NTG-context] Updating LuaTeX after MacTeX-TeXLive 2008 (again)

2008-09-21 Thread Mojca Miklavec
On Sun, Sep 21, 2008 at 9:55 AM, Robert Blackstone wrote:
 Hello Mojca,

 I seem to have run into the same or similar problems as Otared Kavian.
 I followed the instructions on the ConTeXt wiki, but the command

 ''luatools --generate'' gives the error message:
 'LuaTools | error unable to identify cnf file
 LuaTools | error unable to identify cnf file
 LuaTools | no cnf files found (TEXMFCNF may not be set/known)
 LuaTools |
 LuaTools | runtime: 0.008 seconds',

 regardless of the directory from which I issue the command, and though there
 is a 28 KB file texmf.cnf sitting in /usr/local/texlive/2008/texmf/web2c.

This has been known before the TL freeze, but Hans and Taco were
afraid to break other things if they upgraded ConTeXt. The issue only
affects mkiv on MacTeX, but users of mkiv should update frequently
anyway.

 As you succeeded in updating ConTeXt, luatex binary and ConTeXt scripts
 manually, could you please share the method with us. I for one am not
 sufficiently trained in unix to go there all by myself.

 (I'm working on a G4 PowerBook under OSX-10.4.11)

There are many different ways to do that. I use(d) the following
(hopefully no typos):

# update luatex - single line
# you can also use osx-ppc instead of osx-universal
# alternatively, use /usr/local/texlive/2008/bin/universal-darwin
instead of /usr/texbin
# on other platforms change accordingly
rsync -av 
rsync://contextgarden.net/minimals/current/bin/luatex/osx-universal/bin/luatex
/usr/texbin/

# update context - single line (you can also use beta instead of last current)
rsync -av rsync://contextgarden.net/minimals/current/context/current/
/usr/local/texlive/2008/texmf-dist/

I have also created (but it's not really needed)
/usr/local/texlive/2008/texmf/web2c/texmfcnf.lua
with

local conf = {}
conf.TEXMFCACHE = ~/Library/Caches/luatex
return conf

Of course you also need:

mktexlsr
texexec --make --all
texexec --make --xtx --all
luatools --generate
context --make

Mojca
___
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
___


Re: [NTG-context] Updating LuaTeX after MacTeX-TeXLive 2008 (again)

2008-09-21 Thread Mojca Miklavec
On Sat, Sep 20, 2008 at 12:08 PM, Otared Kavian wrote:

 On 19 sept. 08, at 20:31, Mojca Miklavec wrote:

 On Fri, Sep 19, 2008 at 6:56 PM, Otared Kavian wrote:

 Has something changed recently in the ways

 TEXMFCNF has to be set?

Thanks to Oliver's pressing on Hans  Taco :), you don't need to set
anything any more.
And yes, that has been changed after TL freeze.

 On Mac, the situation with LuaTeX configuration has changed
 *considerably* and in some very important ways after ConTeXt  LuaTeX
 have been frozen for TeX Live.

 Hi Mojca,
 Thanks for the information.
 How can one find out how to adapt the new parameters (TEXMFCNF, and alike)?

I would not adapt anything apart from TEXMFCACHE.

 I updated ConTeXt, luatex binary and ConTeXt scripts manually, and it
 works fine now, though I never use --updatecontext.

 What do you mean by manually? Do you mean unzipping the file
 context/current/cont-tmf.zip or context/beta/cont-tmf.zip
 into
 /usr/local/texlive
 or into either of
 /usr/local/texlive/2008
 or /usr/local/texlive/texmf-local ?
 Thanks again for your attention: OK

See the other post. I update ConTeXt directly into
/usr/local/texlive/2008/texmf-dist, though updating into texmf-local
or into ~/.texlive2008 would be just as valid. I update with rsync,
but using the zips is just as fine.

Apart from ConTeXt you also need to update LuaTeX binary (/usr/texbin
= /usr/local/texlive/2008/bin/universal-darwin).
Again - see the other post.

Mojca
___
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
___


Re: [NTG-context] Updating LuaTeX after MacTeX-TeXLive 2008 (again)

2008-09-20 Thread Otared Kavian


On 19 sept. 08, at 20:31, Mojca Miklavec wrote:


On Fri, Sep 19, 2008 at 6:56 PM, Otared Kavian wrote:


Has something changed recently in the ways
TEXMFCNF has to be set?


On Mac, the situation with LuaTeX configuration has changed
*considerably* and in some very important ways after ConTeXt  LuaTeX
have been frozen for TeX Live.


Hi Mojca,

Thanks for the information.
How can one find out how to adapt the new parameters (TEXMFCNF, and  
alike)?




I updated ConTeXt, luatex binary and ConTeXt scripts manually, and it
works fine now, though I never use --updatecontext.


What do you mean by manually? Do you mean unzipping the file
context/current/cont-tmf.zip or context/beta/cont-tmf.zip
into
/usr/local/texlive
or into either of
/usr/local/texlive/2008
or /usr/local/texlive/texmf-local ?

Thanks again for your attention: OK
___
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
___


[NTG-context] Updating LuaTeX after MacTeX-TeXLive 2008 (again)

2008-09-19 Thread Otared KAVIAN
Dear ConTeXters,

I apologize for sending twice this message: since I did not receive it
myself, I thought it has been lost…

So here is my help request:

I just updated my TeX installation with the latest MacTeX-TeXLive 2008, and
since the version of LuaTeX included there was 0.25.0, I built a binary
version
LuaTeX, Version snapshot-0.29.0-2008091817.

Now the problem is that my usual procedure for generating mkiv doesn't work
and I couldn't fix the problem…
(That procedure used to work fine with the previous version of
MacTeX-TeXLive 2008).

More precisely
mtxrun --selfupdate

seems to work fine, but then

luatools --selfupdate

results in:
LuaTools | to be replaced old script /usr/texbin/luatools
LuaTools | unable to locate new script
LuaTools |
LuaTools | runtime: 0.082 seconds

and the command
luatools --generate

apparently works fine, since there is no complaints, as far as I can see.
Now when I issue the command:
luatools --ini --verbose --compile cont-en

luatools stops after executing some commands and finally I get:
LuaTools | using lua initialization file cont-en.luc
LuaTools | running command: luatex --ini --lua=cont-en.luc
/usr/local/texlive/texmf-local/tex/context/base/cont-en.tex \\dump
(/usr/local/texlive/texmf-local/tex/context/base/cont-en.tex
! I can't find file `context.tex'.
l.16 \input context.tex
Please type another input file name:

If I do give a complete path for this file, that is
/usr/local/texlive/texmf-local/tex/context/base/context.tex

(or for another one
/usr/local/texlive/2008/texmf-dist/tex/context/base/context.tex)
again luatools complaints about not finding the file syst-pln.tex… and so
on.

I should say that I execute also the commands
export TEXMFCACHE=/tmp
export TEXMFCNF=/usr/local/texlive/2008/texmf/web2c/
export
TEXMF={/Users/kavian/Library/texmf,/usr/local/texlive/2008/texmf-config,/usr/local/texlive/2008/texmf-var,/usr/local/texlive/2008/../texmf-local,/usr/local/texlive/2008/texmf-dist,/usr/local/texlive/2008/texmf,/usr/local/texlive/texmf-local}
export
LUAINPUTS={/usr/local/texlive/texmf-local/tex/context/base,/usr/local/texlive/texmf-local/scripts/context/lua}
export OSFONTDIR={/Users/kavian/Library/Fonts,/Library/Fonts}
export TEXMFSCRIPTS={$TEXMF/scripts/context/,$TEXMF/tex/context/base}

before the above.

Since I do most of the operations without really understanding what is going
on, I am sure I am doing something wrong… But what?

Thanks for your help…
Best regards: OK
___
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
___


Re: [NTG-context] Updating LuaTeX after MacTeX-TeXLive 2008 (again)

2008-09-19 Thread Aditya Mahajan

On Fri, 19 Sep 2008, Otared KAVIAN wrote:


Dear ConTeXters,

I apologize for sending twice this message: since I did not receive it
myself, I thought it has been lost…

So here is my help request:

I just updated my TeX installation with the latest MacTeX-TeXLive 2008, and
since the version of LuaTeX included there was 0.25.0, I built a binary
version
LuaTeX, Version snapshot-0.29.0-2008091817.

Now the problem is that my usual procedure for generating mkiv doesn't work
and I couldn't fix the problem…
(That procedure used to work fine with the previous version of
MacTeX-TeXLive 2008).

More precisely
mtxrun --selfupdate

seems to work fine, but then

luatools --selfupdate

results in:
LuaTools | to be replaced old script /usr/texbin/luatools
LuaTools | unable to locate new script
LuaTools |
LuaTools | runtime: 0.082 seconds


I do not know how MacOX works, but do you have permissions to write on 
/usr/texbin as a user? If not, you would have to run


sudo luatools --selfupdate

and then proceed.

Aditya___
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
___


Re: [NTG-context] Updating LuaTeX after MacTeX-TeXLive 2008 (again)

2008-09-19 Thread Otared Kavian


On 19 sept. 08, at 18:00, Aditya Mahajan wrote:


On Fri, 19 Sep 2008, Otared KAVIAN wrote:

[…]
luatools --selfupdate

results in:
LuaTools | to be replaced old script /usr/texbin/luatools
LuaTools | unable to locate new script
LuaTools |
LuaTools | runtime: 0.082 seconds


I do not know how MacOX works, but do you have permissions to write  
on /usr/texbin as a user? If not, you would have to run


sudo luatools --selfupdate

and then proceed.



Hi Aditya,

Many thanks for your answer: in fact I tried once with sudo luatools  
--selfupdate, but the answer is:

LuaTools | error unable to identify cnf file
LuaTools | error unable to identify cnf file
LuaTools | no cnf files found (TEXMFCNF may not be set/known)
LuaTools | to be replaced old script /usr/texbin/luatools
LuaTools | unable to locate new script
LuaTools |
LuaTools | runtime: 0.002 seconds

Nevertheless, I have already issued the command
export TEXMFCNF=/usr/local/texlive/2008/texmf/web2c/

Can it be that I have to add other paths to TEXMFCNF? In this case how  
one can find all these paths to add? Has something changed recently in  
the ways TEXMFCNF has to be set?


Thanks again: OK

___
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
___


Re: [NTG-context] Updating LuaTeX after MacTeX-TeXLive 2008 (again)

2008-09-19 Thread Mojca Miklavec
On Fri, Sep 19, 2008 at 6:56 PM, Otared Kavian wrote:

 Has something changed recently in the ways
 TEXMFCNF has to be set?

On Mac, the situation with LuaTeX configuration has changed
*considerably* and in some very important ways after ConTeXt  LuaTeX
have been frozen for TeX Live.

I updated ConTeXt, luatex binary and ConTeXt scripts manually, and it
works fine now, though I never use --updatecontext.

Mojca
___
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
___