On Sun, Oct 19, 2008 at 7:56 PM, Otared Kavian <otared@gmail.com> wrote:

On 19 oct. 08, at 17:28, luigi scarso wrote:

On Sun, Oct 19, 2008 at 3:37 PM, Otared Kavian <otared@gmail.com> wrote:
Up to now I didn't have installed the minimals through the commands given on the Garden.
However, since you told me that it works fine, I just tried to install the minimals too, but while generating the formats I get:

! LuaTeX error ...mini/tex/texmf-context/tex/context/base/luat-tex.lua:322: attempt to perform arithmetic on local 'total' (a nil value). <*> ...texmf-context/tex/context/base/cont-nl.tex \dump
actually
luatex is not good
You should hit return until installation end; then install luatex from trunk;
then remake format with
context --generate
context --make
Now you must have no errors anymore .

 

I did again what you suggest, but no better result:
/Applications/context-mini/tex/texmf-osx-intel/bin/context --generate 
results in
MtxRun | error unable to identify cnf file 
MtxRun | error unable to identify cnf file 
MtxRun | no cnf files found (TEXMFCNF may not be set/known) 
MtxRun | unknown script: context
(same thing with /Applications/context-mini/tex/texmf-osx-intel/bin/context --make).
Did you have made
. setuptex
(watch for the dot!) ?


Something strange which I don't know whether it is "legal" or not, is that if I use the luatols in the Context-Minimal folder, to generate, that is:
/Applications/context-mini/tex/texmf-osx-intel/bin/luatools --generate
then luatools uses for some reason what I have in my TeXLive 2008 directory that is what is in 
/usr/local/texlive/2008/
and if I rename the /usr/local/texlive to something else, then 
/Applications/context-mini/tex/texmf-osx-intel/bin/luatools --generate
returns:
env: texlua: No such file or directory

I thought what one installs with the Minimals is independent of TeXLive 2008 though…



[…]
Can you try
context --generate
context basic-test


Again these do not result in anything good: same output as above, when I say context --make.

Now that I have done what you suggested, the mkii in the Minimals does not ork either :-)
Sorry for that !
Saying
/Applications/context-mini/tex/texmf-osx-intel/bin/texexec basic-test.tex
results in:

FatalError      : Your format does not match the base files!

FormatVersion   : 2008.10.08 23:34 MKII
FilesVersion    : 2008.10.17 10:41
and again the reason seems to be that the texxec in the Minimals uses
/usr/local/texlive/2008/texmf-dist/tex/context/base/cont-new.tex
which doesn't seem to be "normal".

I think the best I can do is to wait for something more stable to play with.
For my serious work I avoid up to now to use mkiv,
With the finger crossed I will start tomorrow a project in mkiv
 
but I would like to test what Hans, Taco and others are doing, at least to help find bugs for the Right to Left typesetting.
It's important, so
I write how I setup my minimals on a linux box
1) mkdir -p /opt/luatex/minimals-beta
2) cd /opt/luatex/minimals-beta
2a) Now put here first-setup.sh (see contextgarden.net/minimals)
3)  ./first-setup.sh
3a)If there are some errors due a luatex version; hit return until the end
4) cd tex
5) . setuptex
5a)Now, if you have compiled luatex from svn, put it into texmf-linux/bin
6) context --generate
7) context --make
7a)not errors  anymore, I hope.
8)Every time I start a mkiv session
I do
cd /opt/luatex/minimals-beta/tex
. setuptext
as first step
to ensure correct initilizatione of env variables.
9a)context --generate
9b)context --make
to unsure a clean session.
10) always use context to make pdf; ie test your file with
context basic-test.tex


If you open first-setup.sh and change this line
mtxrun --verbose --script ./bin/mtx-update.lua --update --make --force --engine=all --context=beta --tree=$PWD/tex $@
in
mtxrun --verbose --script ./bin/mtx-update.lua --update --make --force --engine=all  --tree=$PWD/tex $@
and then
1) mkdir -p /opt/luatex/minimals
2)...
you can then end with a minimal installation

Actually I have
minimals-beta, minimal and  tl2008 completly unrelated
so each installations has is own fonts etc etc.
It's ok, because minimals and minimals-beta are not so huge and I want to be sure that minimals-beta and minimals work

--
luigi