Updating LuaTeX after MacTeX-TeXLive 2008 (again)
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
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
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
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
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
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
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 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 ___________________________________________________________________________________
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
participants (4)
-
Aditya Mahajan
-
Mojca Miklavec
-
Otared Kavian
-
Otared KAVIAN