* LuaTeX on Mac OS X
@ 2007-10-01 21:31 Otared Kavian
2007-10-02 6:36 ` Dalyoung Jeong
` (2 more replies)
0 siblings, 3 replies; 22+ messages in thread
From: Otared Kavian @ 2007-10-01 21:31 UTC (permalink / raw)
To: Dalyoung Jeong; +Cc: mailing ConTeXt users list for
Dear Dalyoung,
Like many other ConTeXt users I followed up the many threads about
how to install, successfully, LuaTeX.
In particular I was interested in your experience since I had more or
less the same problems as the ones you described in your latest
messages on the list.
Now my question is: did you succeed to install and use LuaTeX on Mac
OS X?
--- If yes, could you please describe how you did proceed?
--- If no, this means we have to wait more for our salvation...
Thanks for your attention and 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: LuaTeX on Mac OS X
2007-10-01 21:31 LuaTeX on Mac OS X Otared Kavian
@ 2007-10-02 6:36 ` Dalyoung Jeong
2007-10-02 7:56 ` Hans Hagen
2007-10-02 17:53 ` Thomas A. Schmitz
[not found] ` <859EA456-9317-4AEB-9AE2-52AA0BFF57D6@mac.com>
2 siblings, 1 reply; 22+ messages in thread
From: Dalyoung Jeong @ 2007-10-02 6:36 UTC (permalink / raw)
To: Otared Kavian; +Cc: mailing list for ConTeXt users
Dear Otared,
Thank you for your mail.
Since there is no echo at all on this matter for a few days, I think
that I am the only person who has the installation problem.
I tired in many ways. I repeated the installation process three
times from the scratch.
But I have no progress at all.
I made ".luatex"(it is described by Thomas in ntg-context digest vol
39, issue 30), and got the following result. there is a little
difference. luatools tried to load texmf.cnf but face to an error soon.
%%%%%%%%
dalyoung$ source ~/.luatex
dalyoung$ luatools --generate
LuaTools | skipping /usr/local/texlive/2007/bin/powerpc-darwin/texmf.cnf
LuaTools | skipping /usr/local/texlive/2007/bin/powerpc-darwin/share/
texmf-local/web2c/texmf.cnf
...
LuaTools | skipping /usr/local/texlive/2007/bin/texmf.cnf
LuaTools | skipping /usr/local/texlive/2007/bin/texmf/web2c/texmf.cnf
LuaTools | skipping /usr/local/texlive/2007/texmf.cnf
LuaTools | loading /usr/local/texlive/2007/texmf/web2c/texmf.cnf
LuaTools | skipping /./texmf.cnfError in lua file loading: /usr/
texbin/luatools:1108: bad argument #1 to 'sum' (string expected, got
table)
%%%%%%%%%%%%%%%%%%%
As you see, the output of luatools --variables also gave the same
output.
~ dalyoung$ luatools --variables
Error in lua file loading: /usr/texbin/luatools:1108: bad argument #1
to 'sum' (string expected, got table)
~ dalyoung$ luatools --show-path
Error in lua file loading: /usr/texbin/luatools:1108: bad argument #1
to 'sum' (string expected, got table)
%%%%%%%%%%%%%%%%%%%
There may be something that is unknown to us in our system. For
information, I use mac G5(OSX 10.4.10, PPC) and installed MacTeX 2007
version.
That is all that I can say right now. If you have anything good,
please let me know.
Thank you for your concern.
best regards,
Dalyoung
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: LuaTeX on Mac OS X
2007-10-02 6:36 ` Dalyoung Jeong
@ 2007-10-02 7:56 ` Hans Hagen
2007-10-02 11:12 ` Wolfgang Schuster
0 siblings, 1 reply; 22+ messages in thread
From: Hans Hagen @ 2007-10-02 7:56 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Otared Kavian
Dalyoung Jeong wrote:
> Thank you for your mail.
> Since there is no echo at all on this matter for a few days, I think
> that I am the only person who has the installation problem.
well, i have no mac -)
> LuaTools | loading /usr/local/texlive/2007/texmf/web2c/texmf.cnf
> LuaTools | skipping /./texmf.cnfError in lua file loading: /usr/
> texbin/luatools:1108: bad argument #1 to 'sum' (string expected, got
> table)
hm, is there something weird in the cnf file?
> %%%%%%%%%%%%%%%%%%%
>
> As you see, the output of luatools --variables also gave the same
> output.
>
> ~ dalyoung$ luatools --variables
> Error in lua file loading: /usr/texbin/luatools:1108: bad argument #1
> to 'sum' (string expected, got table)
> ~ dalyoung$ luatools --show-path
> Error in lua file loading: /usr/texbin/luatools:1108: bad argument #1
> to 'sum' (string expected, got table)
>
> %%%%%%%%%%%%%%%%%%%
>
> There may be something that is unknown to us in our system. For
> information, I use mac G5(OSX 10.4.10, PPC) and installed MacTeX 2007
> version.
>
> That is all that I can say right now. If you have anything good,
> please let me know.
i remember problems with parsing filenames that had weird chars
what is in line 1108 of your luatools?
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: LuaTeX on Mac OS X
2007-10-02 7:56 ` Hans Hagen
@ 2007-10-02 11:12 ` Wolfgang Schuster
0 siblings, 0 replies; 22+ messages in thread
From: Wolfgang Schuster @ 2007-10-02 11:12 UTC (permalink / raw)
To: ntg-context
On Tue, 02 Oct 2007 09:56:23 +0200
Hans Hagen <pragma@wxs.nl> wrote:
> Dalyoung Jeong wrote:
>
> > Thank you for your mail.
> > Since there is no echo at all on this matter for a few days, I think
> > that I am the only person who has the installation problem.
>
> well, i have no mac -)
>
> > LuaTools | loading /usr/local/texlive/2007/texmf/web2c/texmf.cnf
> > LuaTools | skipping /./texmf.cnfError in lua file loading: /usr/
> > texbin/luatools:1108: bad argument #1 to 'sum' (string expected, got
> > table)
>
> hm, is there something weird in the cnf file?
>
> > %%%%%%%%%%%%%%%%%%%
> >
> > As you see, the output of luatools --variables also gave the same
> > output.
> >
> > ~ dalyoung$ luatools --variables
> > Error in lua file loading: /usr/texbin/luatools:1108: bad argument #1
> > to 'sum' (string expected, got table)
> > ~ dalyoung$ luatools --show-path
> > Error in lua file loading: /usr/texbin/luatools:1108: bad argument #1
> > to 'sum' (string expected, got table)
> >
> > %%%%%%%%%%%%%%%%%%%
> >
> > There may be something that is unknown to us in our system. For
> > information, I use mac G5(OSX 10.4.10, PPC) and installed MacTeX 2007
> > version.
> >
> > That is all that I can say right now. If you have anything good,
> > please let me know.
>
> i remember problems with parsing filenames that had weird chars
>
> what is in line 1108 of your luatools?
I have the same error message on my wndows machine but the setuptex
script solves this for me und LuaTeX is working.
Wolfgang
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: LuaTeX on Mac OS X
2007-10-01 21:31 LuaTeX on Mac OS X Otared Kavian
2007-10-02 6:36 ` Dalyoung Jeong
@ 2007-10-02 17:53 ` Thomas A. Schmitz
2007-10-04 6:28 ` Otared Kavian
[not found] ` <859EA456-9317-4AEB-9AE2-52AA0BFF57D6@mac.com>
2 siblings, 1 reply; 22+ messages in thread
From: Thomas A. Schmitz @ 2007-10-02 17:53 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Oct 1, 2007, at 11:31 PM, Otared Kavian wrote:
> Dear Dalyoung,
>
> Like many other ConTeXt users I followed up the many threads about
> how to install, successfully, LuaTeX.
> In particular I was interested in your experience since I had more or
> less the same problems as the ones you described in your latest
> messages on the list.
> Now my question is: did you succeed to install and use LuaTeX on Mac
> OS X?
> --- If yes, could you please describe how you did proceed?
> --- If no, this means we have to wait more for our salvation...
>
> Thanks for your attention and best regards: OK
>
>
OK, I have just summarized my own experience with luatex. Please
comment; if this is helpful at all, we should put it on the wiki.
Thomas
Setting up luatex on OS X
The following remarks are not more than an amplification of what Hans
writes in
magazin #12. However, since some users have had difficulties, here's
a short
summary of the steps that I have followed on my system (OS X 10.4;
system
language set to English; vanilla TeXLive installation) to work with
luatex.
1. Get the latest ConTeXt version.
Download the latest cont-tmf.zip at
www.pragma-ade.com (either stable or beta). Unzip this file in a
texmf-tree. It
is recommended that you do this in a local tree. This way, if you
ever have
problems, you can just delete this local tree and continue working
with the
stable tree that came with your distribution. If you don't know where
your
local texmf tree is located, follow these directions (a line with #
in front
means you should type the line following this # into your Terminal
window;
press "Return" at the end of the line. Comments or explanations which
should
not be retyped are included in <> brackets. Please be careful to retype
exactly, leaving all the quotes etc. in place!).
# kpsewhich --expand-var '$TEXMFLOCAL'
On my system, this expands to
/usr/local/texlive/texmf-local
Now go to this directory
# cd /usr/local/texlive/texmf-local
download the file cont-tmf.zip to this directory and unzip it. On
most systems,
you will need superuser rights to do this; after entering the sudo
command, you
will be asked for your password.
# sudo unzip cont-tmf.zip
Password:
# <type your password, then RETURN>
Archive: cont-tmf.zip
replace bibtex/bst/context/cont-ab.bst? [y]es, [n]o, [A]ll, [N]one,
[r]ename:
# <type A> <then type RETURN>
After this, a long list of files will scroll by.
2. Regenerate the formats
While we're at it, we might as well regenerate the formats for pdftex-
based
ConTeXT:
# sudo texmfstart texexec --make --all --pdftex
You'll see the output on the Terminal; at the end, texexec should
tell you that
it has regenerated all the formats.
TeXExec |
TeXExec | tex engine path: /usr/local/texlive/2007/texmf-config/web2c/
pdftex
TeXExec | mps engine path: /usr/local/texlive/2007/texmf-config/web2c
TeXExec |
TeXExec | tex: 02/10/2007 17:50:43 > /usr/local/texlive/2007/texmf-
config/web2c/pdftex/cont-en.fmt (7392414)
TeXExec | tex: 02/10/2007 17:50:57 > /usr/local/texlive/2007/texmf-
config/web2c/pdftex/cont-nl.fmt (7473512)
TeXExec | tex: 02/10/2007 17:50:57 > /usr/local/texlive/2007/texmf-
config/web2c/pdftex/mptopdf.fmt (277947)
TeXExec | mps: 02/10/2007 17:50:58 > /usr/local/texlive/2007/texmf-
config/web2c/metafun.mem (482192)
TeXExec |
TeXExec | runtime: 7.575246
3. Set environment variables
In its current beta stadium, luatex needs some environment variables
to be set;
this will probably change soon. In my experiments, on OS X, it needs
these
four variables:
TEXMFCACHE: this decides where the luatex-cache directory will be
created. If
you set this variable to a temporary directory such as /tmp, it will
be deleted
at every reboot. This is a good idea since luatex caches lots of
files and
paths in this directory, so it makes sense to refresh this directory
often.
TEXMFCNF: This should point to the directory where the file texmf.cnf
which
your TeX installation uses is located. In order to find out where
this is, run
this command:
#kpsewhich texmf.cnf
On my system, this points to
/usr/local/texlive/2007/texmf/web2c/texmf.cnf
so we need to set TEXMFCNF to /usr/local/texlive/2007/texmf/web2c.
TEXMF
This should list ALL texmf trees which your TeX installation uses. In
order to
know what these trees are, run this command:
# kpsewhich --expand-var '$TEXMF'
The output of this command on my system is:
{/Users/tas/.texlive2007/texmf-config,/Users/tas/.texlive2007/texmf-
var,/Users/tas/texmf,!!/usr/local/texlive/2007/texmf-config,!!/usr/
local/texlive/2007/texmf-var,!!/usr/local/texlive/2007/texmf,!!/usr/
local/texlive/2007/../texmf-local,!!/usr/local/texlive/2007/texmf-
dist,!!/usr/local/texlive/2007/texmf.gwtex}
In this form, the list contains a few shortcuts and symbols which are
special
to kpsewhich. Remove all the exclamation marks; if there are other
shortcuts in
your output, bring it into a flat list of Unix directories.
LUAINPUTS
These are the directories where the lua scripts are located, they are
on my
system:
{/usr/local/texlive/texmf-local/tex/context/base,/usr/local/texlive/
texmf-local/scripts/context/lua,/Users/tas/texmf/scripts/context/lua}
Since these variables will have to be set every time you run luaTeX,
it makes
sense to automate the process. So we collect all the definitions like
so (these
are the values on my system; adapt to your setup!):
export TEXMFCACHE="/tmp"
export TEXMFCNF="/usr/local/texlive/2007/texmf/web2c"
export TEXMF="{/Users/tas/.texlive2007/texmf-config,/Users/
tas/.texlive2007/texmf-var,/Users/tas/texmf,/usr/local/texlive/2007/
texmf-config,/usr/local/texlive/2007/texmf-var,/usr/local/texlive/
2007/texmf,/usr/local/texlive/texmf-local,/usr/local/texlive/2007/
texmf-dist,/usr/local/texlive/2007/texmf.gwtex}"
export LUAINPUTS="{/usr/local/texlive/texmf-local/tex/context/base,/
usr/local/texlive/texmf-local/scripts/context/lua,/Users/tas/texmf/
scripts/context/lua}"
There are two ways you can set these variables easily:
a. put them in a file; let's call this file .luatex. Every time you
want to run
luatex, just say
# source .luatex
in your terminal.
b. If you want these variables to be set every time you log into your
computer,
put them in a file .bashrc in your home directory (this only works if
your
shell is bash, the default shell in OS X 10.4 and 10.3. If you have
never
tinkered with the shell, it probably is).
Let's test if setting the variables has worked:
# echo $TEXMF
the output on my system is:
{/Users/tas/.texlive2007/texmf-config,/Users/tas/.texlive2007/texmf-
var,/Users/tas/texmf,/usr/local/texlive/2007/texmf-config,/usr/local/
texlive/2007/texmf-var,/usr/local/texlive/2007/texmf,/usr/local/
texlive/texmf-local,/usr/local/texlive/2007/texmf-dist,/usr/local/
texlive/2007/texmf.gwtex}
4. Installing the binaries.
We now have to install and tweak the necessary binaries. First, of
course,
luatex itself. We put it in the same directory with all the other TeX
binaries.
To determine where that is, we issue
# which pdftex
/usr/local/texlive/2007/bin/i386-darwin/pdftex
So we get the latest luatex from www.luatex.org and copy it to this
directory.
We also create two links to luatex:
# cd /usr/local/texlive/2007/bin/i386-darwin/pdftex
# sudo ln -s luatex texlua
# sudo ln -s luatex texluac
There are two more lua scripts which need to be installed.
Unfortunately, Hans
uses a different operating system, so we need to make them executable
first. Go
to the directory where you installed your ConTeXt update, so in my case:
# cd /usr/local/texlive/texmf-local/scripts/context/lua/
# sudo chmod 755 mtxrun.lua
# sudo chmod 755 luatools.lua
After that, we create symbolic links to these programs in the
directory where
we installed luatex:
# cd /usr/local/texlive/2007/bin/i386-darwin/pdftex
# sudo ln -s /usr/local/texlive/texmf-local/scripts/context/lua/
luatools.lua luatools
# sudo ln -s /usr/local/texlive/texmf-local/scripts/context/lua/
mtxrun.lua mtxrun
Again, let's test if this has worked:
# rehash
# which luatools
/usr/local/texlive/2007/bin/i386-darwin/luatools
5. Generating the Database and the formats
You're almost there! Now let luatools generate its internal database:
# luatools --generate
Again, a long list of stuff will scroll by (if luatools gives just a
fewlines
of output, you know that you've made a mistake somewhere along the
way). Here's
the beginning and end on my system:
LuaTools | loading /usr/local/texlive/2007/texmf/web2c/texmf.cnf
LuaTools | preparing configuration in /tmp/luatex-cache/context/
6da32d2ec193ac6d2428d020ce069374/trees/
6da32d2ec193ac6d2428d020ce069374.tma
LuaTools | saving configuration in /tmp/luatex-cache/context/
6da32d2ec193ac6d2428d020ce069374/trees/
6da32d2ec193ac6d2428d020ce069374.tma
[snip]
LuaTools | saving files in /tmp/luatex-cache/context/
6da32d2ec193ac6d2428d020ce069374/trees/
729867c88f88a392262749cb9c3d602b.tma
LuaTools | compiling files to /tmp/luatex-cache/context/
6da32d2ec193ac6d2428d020ce069374/trees/
729867c88f88a392262749cb9c3d602b.tmc
LuaTools |
LuaTools | runtime: 9.74 seconds
We test if luatex is able to find files:
# luatools cont-new.tex
/usr/local/texlive/texmf-local/tex/context/base/cont-new.tex
Then, we generate the formats for luatex:
luatools --ini --verbose --compile cont-en
Again, many lines of output, among those the confirmation that the
formats have
been built and installed:
LuaTools | creating initialization file cont-en
LuaTools | using library path : /usr/local/texlive/texmf-local/tex/
context/base
LuaTools | using lua libraries: l-string.lua l-table.lua l-
boolean.lua l-number.lua l-unicode.lua l-md5.lua l-os.lua l-io.lua l-
file.lua l-dir.lua l-utils.lua l-tex.lua luat-lib.lua luat-inp.lua
luat-tmp.lua luat-zip.lua luat-tex.lua
LuaTools | using compiled initialization file cont-en.luc
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
This is luaTeX, Version 3.141592-beta-0.11.2-2007091918 (Web2C 7.5.6)
(INITEX)
[snip]
ConTeXt ver: 2007.09.28 16:52 MKIV fmt: 2007.10.2 int: english/
english
lua : used config path - /usr/local/texlive/2007/texmf/web2c
lua : used cache path - /tmp/luatex-cache/context/
6da32d2ec193ac6d2428d020ce069374
)
Beginning to dump on file cont-en.fmt
(format=cont-en 2007.10.2)
And that's it! Now you can create your first test file and typeset it
with
luatex:
texmfstart texexec --luatex test.tex
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: LuaTeX on Mac OS X
2007-10-02 17:53 ` Thomas A. Schmitz
@ 2007-10-04 6:28 ` Otared Kavian
2007-10-04 6:43 ` Thomas A. Schmitz
2007-10-04 8:24 ` Mojca Miklavec
0 siblings, 2 replies; 22+ messages in thread
From: Otared Kavian @ 2007-10-04 6:28 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Dalyoung Jeong
Dear Thomas, dear Dalyoung, dear all,
Thank you so much for the detailed procedure you sent about
installing LuaTeX on MacOS X.
I could follow your instructions up to some point, but I must confess
that I ended up into some confusion when you say
> After that, we create symbolic links to these programs in the
> directory where
> we installed luatex:
> # cd /usr/local/texlive/2007/bin/i386-darwin/pdftex
> # sudo ln -s /usr/local/texlive/texmf-local/scripts/context/lua/
> luatools.lua luatools
> # sudo ln -s /usr/local/texlive/texmf-local/scripts/context/lua/
> mtxrun.lua mtxrun
Indeed the binary paths I have for my TeX programs are
/usr/local/gwTeX/bin/
/usr/texbin
of which the first one contains the directory
/usr/local/gwTeX/bin/powerpc-apple-darwin7.9.0
However, in this directory I only have a file "pdftex" which is not a
directory, and therefore the command
cd /usr/local/gwTeX/bin/powerpc-apple-darwin7.9.0/pdftex/
results in:
bash: cd: /usr/local/gwTeX/bin/powerpc-apple-darwin7.9.0/pdftex/: Not
a directory
(By the way the command "rehash" you mention in your instructions
does not exist, so I had to use
sudo texhash
instead. Also, in order to "export" the environment variables as you
mention in your instructions, I had to switch to "bash", the "Bourne
Again Shell". However these are not the main issues).
So it seems that the procedures for installing LuaTeX are not yet
thouroughly straightforward, and persons like Dalyoung and me have to
wait a little bit...
Once again thanks for your patience and help though!
Best regards: OK
On 2 oct. 2007, at 19:53, Thomas A. Schmitz wrote:
>
> On Oct 1, 2007, at 11:31 PM, Otared Kavian wrote:
>
>> Dear Dalyoung,
>>
>> Like many other ConTeXt users I followed up the many threads about
>> how to install, successfully, LuaTeX.
>> In particular I was interested in your experience since I had more or
>> less the same problems as the ones you described in your latest
>> messages on the list.
>> Now my question is: did you succeed to install and use LuaTeX on Mac
>> OS X?
>> --- If yes, could you please describe how you did proceed?
>> --- If no, this means we have to wait more for our salvation...
>>
>> Thanks for your attention and best regards: OK
>>
>>
> OK, I have just summarized my own experience with luatex. Please
> comment; if this is helpful at all, we should put it on the wiki.
>
> Thomas
>
> Setting up luatex on OS X
>
> The following remarks are not more than an amplification of what Hans
> writes in
> magazin #12. However, since some users have had difficulties, here's
> a short
> summary of the steps that I have followed on my system (OS X 10.4;
> system
> language set to English; vanilla TeXLive installation) to work with
> luatex.
>
> 1. Get the latest ConTeXt version.
>
> Download the latest cont-tmf.zip at
> www.pragma-ade.com (either stable or beta). Unzip this file in a
> texmf-tree. It
> is recommended that you do this in a local tree. This way, if you
> ever have
> problems, you can just delete this local tree and continue working
> with the
> stable tree that came with your distribution. If you don't know where
> your
> local texmf tree is located, follow these directions (a line with #
> in front
> means you should type the line following this # into your Terminal
> window;
> press "Return" at the end of the line. Comments or explanations which
> should
> not be retyped are included in <> brackets. Please be careful to
> retype
> exactly, leaving all the quotes etc. in place!).
>
> # kpsewhich --expand-var '$TEXMFLOCAL'
>
> On my system, this expands to
> /usr/local/texlive/texmf-local
>
> Now go to this directory
>
> # cd /usr/local/texlive/texmf-local
>
> download the file cont-tmf.zip to this directory and unzip it. On
> most systems,
> you will need superuser rights to do this; after entering the sudo
> command, you
> will be asked for your password.
>
> # sudo unzip cont-tmf.zip
> Password:
> # <type your password, then RETURN>
> Archive: cont-tmf.zip
> replace bibtex/bst/context/cont-ab.bst? [y]es, [n]o, [A]ll, [N]one,
> [r]ename:
> # <type A> <then type RETURN>
>
> After this, a long list of files will scroll by.
>
> 2. Regenerate the formats
>
> While we're at it, we might as well regenerate the formats for pdftex-
> based
> ConTeXT:
>
> # sudo texmfstart texexec --make --all --pdftex
>
> You'll see the output on the Terminal; at the end, texexec should
> tell you that
> it has regenerated all the formats.
> TeXExec |
> TeXExec | tex engine path: /usr/local/texlive/2007/texmf-config/web2c/
> pdftex
> TeXExec | mps engine path: /usr/local/texlive/2007/texmf-config/web2c
> TeXExec |
> TeXExec | tex: 02/10/2007 17:50:43 > /usr/local/texlive/2007/texmf-
> config/web2c/pdftex/cont-en.fmt (7392414)
> TeXExec | tex: 02/10/2007 17:50:57 > /usr/local/texlive/2007/texmf-
> config/web2c/pdftex/cont-nl.fmt (7473512)
> TeXExec | tex: 02/10/2007 17:50:57 > /usr/local/texlive/2007/texmf-
> config/web2c/pdftex/mptopdf.fmt (277947)
> TeXExec | mps: 02/10/2007 17:50:58 > /usr/local/texlive/2007/texmf-
> config/web2c/metafun.mem (482192)
> TeXExec |
> TeXExec | runtime: 7.575246
>
> 3. Set environment variables
>
> In its current beta stadium, luatex needs some environment variables
> to be set;
> this will probably change soon. In my experiments, on OS X, it needs
> these
> four variables:
>
> TEXMFCACHE: this decides where the luatex-cache directory will be
> created. If
> you set this variable to a temporary directory such as /tmp, it will
> be deleted
> at every reboot. This is a good idea since luatex caches lots of
> files and
> paths in this directory, so it makes sense to refresh this directory
> often.
>
> TEXMFCNF: This should point to the directory where the file texmf.cnf
> which
> your TeX installation uses is located. In order to find out where
> this is, run
> this command:
>
> #kpsewhich texmf.cnf
>
> On my system, this points to
> /usr/local/texlive/2007/texmf/web2c/texmf.cnf
> so we need to set TEXMFCNF to /usr/local/texlive/2007/texmf/web2c.
>
> TEXMF
> This should list ALL texmf trees which your TeX installation uses. In
> order to
> know what these trees are, run this command:
>
> # kpsewhich --expand-var '$TEXMF'
>
> The output of this command on my system is:
>
> {/Users/tas/.texlive2007/texmf-config,/Users/tas/.texlive2007/texmf-
> var,/Users/tas/texmf,!!/usr/local/texlive/2007/texmf-config,!!/usr/
> local/texlive/2007/texmf-var,!!/usr/local/texlive/2007/texmf,!!/usr/
> local/texlive/2007/../texmf-local,!!/usr/local/texlive/2007/texmf-
> dist,!!/usr/local/texlive/2007/texmf.gwtex}
>
> In this form, the list contains a few shortcuts and symbols which are
> special
> to kpsewhich. Remove all the exclamation marks; if there are other
> shortcuts in
> your output, bring it into a flat list of Unix directories.
>
> LUAINPUTS
>
> These are the directories where the lua scripts are located, they are
> on my
> system:
>
> {/usr/local/texlive/texmf-local/tex/context/base,/usr/local/texlive/
> texmf-local/scripts/context/lua,/Users/tas/texmf/scripts/context/lua}
>
> Since these variables will have to be set every time you run luaTeX,
> it makes
> sense to automate the process. So we collect all the definitions like
> so (these
> are the values on my system; adapt to your setup!):
>
> export TEXMFCACHE="/tmp"
> export TEXMFCNF="/usr/local/texlive/2007/texmf/web2c"
> export TEXMF="{/Users/tas/.texlive2007/texmf-config,/Users/
> tas/.texlive2007/texmf-var,/Users/tas/texmf,/usr/local/texlive/2007/
> texmf-config,/usr/local/texlive/2007/texmf-var,/usr/local/texlive/
> 2007/texmf,/usr/local/texlive/texmf-local,/usr/local/texlive/2007/
> texmf-dist,/usr/local/texlive/2007/texmf.gwtex}"
> export LUAINPUTS="{/usr/local/texlive/texmf-local/tex/context/base,/
> usr/local/texlive/texmf-local/scripts/context/lua,/Users/tas/texmf/
> scripts/context/lua}"
>
> There are two ways you can set these variables easily:
>
> a. put them in a file; let's call this file .luatex. Every time you
> want to run
> luatex, just say
>
> # source .luatex
>
> in your terminal.
>
> b. If you want these variables to be set every time you log into your
> computer,
> put them in a file .bashrc in your home directory (this only works if
> your
> shell is bash, the default shell in OS X 10.4 and 10.3. If you have
> never
> tinkered with the shell, it probably is).
>
> Let's test if setting the variables has worked:
>
> # echo $TEXMF
>
> the output on my system is:
>
> {/Users/tas/.texlive2007/texmf-config,/Users/tas/.texlive2007/texmf-
> var,/Users/tas/texmf,/usr/local/texlive/2007/texmf-config,/usr/local/
> texlive/2007/texmf-var,/usr/local/texlive/2007/texmf,/usr/local/
> texlive/texmf-local,/usr/local/texlive/2007/texmf-dist,/usr/local/
> texlive/2007/texmf.gwtex}
>
> 4. Installing the binaries.
>
> We now have to install and tweak the necessary binaries. First, of
> course,
> luatex itself. We put it in the same directory with all the other TeX
> binaries.
> To determine where that is, we issue
>
> # which pdftex
>
> /usr/local/texlive/2007/bin/i386-darwin/pdftex
>
> So we get the latest luatex from www.luatex.org and copy it to this
> directory.
> We also create two links to luatex:
>
> # cd /usr/local/texlive/2007/bin/i386-darwin/pdftex
> # sudo ln -s luatex texlua
> # sudo ln -s luatex texluac
>
> There are two more lua scripts which need to be installed.
> Unfortunately, Hans
> uses a different operating system, so we need to make them executable
> first. Go
> to the directory where you installed your ConTeXt update, so in my
> case:
>
> # cd /usr/local/texlive/texmf-local/scripts/context/lua/
> # sudo chmod 755 mtxrun.lua
> # sudo chmod 755 luatools.lua
>
> After that, we create symbolic links to these programs in the
> directory where
> we installed luatex:
> # cd /usr/local/texlive/2007/bin/i386-darwin/pdftex
> # sudo ln -s /usr/local/texlive/texmf-local/scripts/context/lua/
> luatools.lua luatools
> # sudo ln -s /usr/local/texlive/texmf-local/scripts/context/lua/
> mtxrun.lua mtxrun
>
> Again, let's test if this has worked:
> # rehash
> # which luatools
> /usr/local/texlive/2007/bin/i386-darwin/luatools
>
> 5. Generating the Database and the formats
>
> You're almost there! Now let luatools generate its internal database:
> # luatools --generate
>
> Again, a long list of stuff will scroll by (if luatools gives just a
> fewlines
> of output, you know that you've made a mistake somewhere along the
> way). Here's
> the beginning and end on my system:
>
> LuaTools | loading /usr/local/texlive/2007/texmf/web2c/texmf.cnf
> LuaTools | preparing configuration in /tmp/luatex-cache/context/
> 6da32d2ec193ac6d2428d020ce069374/trees/
> 6da32d2ec193ac6d2428d020ce069374.tma
> LuaTools | saving configuration in /tmp/luatex-cache/context/
> 6da32d2ec193ac6d2428d020ce069374/trees/
> 6da32d2ec193ac6d2428d020ce069374.tma
>
> [snip]
>
> LuaTools | saving files in /tmp/luatex-cache/context/
> 6da32d2ec193ac6d2428d020ce069374/trees/
> 729867c88f88a392262749cb9c3d602b.tma
> LuaTools | compiling files to /tmp/luatex-cache/context/
> 6da32d2ec193ac6d2428d020ce069374/trees/
> 729867c88f88a392262749cb9c3d602b.tmc
> LuaTools |
> LuaTools | runtime: 9.74 seconds
>
> We test if luatex is able to find files:
>
> # luatools cont-new.tex
> /usr/local/texlive/texmf-local/tex/context/base/cont-new.tex
>
> Then, we generate the formats for luatex:
>
> luatools --ini --verbose --compile cont-en
>
> Again, many lines of output, among those the confirmation that the
> formats have
> been built and installed:
>
> LuaTools | creating initialization file cont-en
> LuaTools | using library path : /usr/local/texlive/texmf-local/tex/
> context/base
> LuaTools | using lua libraries: l-string.lua l-table.lua l-
> boolean.lua l-number.lua l-unicode.lua l-md5.lua l-os.lua l-io.lua l-
> file.lua l-dir.lua l-utils.lua l-tex.lua luat-lib.lua luat-inp.lua
> luat-tmp.lua luat-zip.lua luat-tex.lua
> LuaTools | using compiled initialization file cont-en.luc
> 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
> This is luaTeX, Version 3.141592-beta-0.11.2-2007091918 (Web2C 7.5.6)
> (INITEX)
>
> [snip]
>
> ConTeXt ver: 2007.09.28 16:52 MKIV fmt: 2007.10.2 int: english/
> english
>
> lua : used config path - /usr/local/texlive/2007/texmf/web2c
> lua : used cache path - /tmp/luatex-cache/context/
> 6da32d2ec193ac6d2428d020ce069374
> )
> Beginning to dump on file cont-en.fmt
> (format=cont-en 2007.10.2)
>
> And that's it! Now you can create your first test file and typeset it
> with
> luatex:
>
> texmfstart texexec --luatex test.tex
> ______________________________________________________________________
> _____________
> 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: LuaTeX on Mac OS X
2007-10-04 6:28 ` Otared Kavian
@ 2007-10-04 6:43 ` Thomas A. Schmitz
2007-10-04 8:24 ` Mojca Miklavec
1 sibling, 0 replies; 22+ messages in thread
From: Thomas A. Schmitz @ 2007-10-04 6:43 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Oct 4, 2007, at 8:28 AM, Otared Kavian wrote:
> Indeed the binary paths I have for my TeX programs are
>
> /usr/local/gwTeX/bin/
> /usr/texbin
>
> of which the first one contains the directory
>
> /usr/local/gwTeX/bin/powerpc-apple-darwin7.9.0
>
> However, in this directory I only have a file "pdftex" which is not a
> directory, and therefore the command
>
> cd /usr/local/gwTeX/bin/powerpc-apple-darwin7.9.0/pdftex/
>
> results in:
>
> bash: cd: /usr/local/gwTeX/bin/powerpc-apple-darwin7.9.0/pdftex/: Not
> a directory
Sorry, that was a typo! So in your case, that should be
cd /usr/local/gwTeX/bin/powerpc-apple-darwin7.9.0
Btw, "rehash" is not the same as "texhash": in some shells (I use
zsh, the best shell in the world), you run this command when you add
a new binary to your path.
Thomas
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: LuaTeX on Mac OS X
2007-10-04 6:28 ` Otared Kavian
2007-10-04 6:43 ` Thomas A. Schmitz
@ 2007-10-04 8:24 ` Mojca Miklavec
1 sibling, 0 replies; 22+ messages in thread
From: Mojca Miklavec @ 2007-10-04 8:24 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 10/4/07, Otared Kavian wrote:
> So it seems that the procedures for installing LuaTeX are not yet
> thouroughly straightforward, and persons like Dalyoung and me have to
> wait a little bit...
I have never been stubborn enough in order to try to make luatex work
over the existing gwTeX, so I have been always using Hans's minimals
(you need to download justtex.zip and macosxtex.zip, unzip them and
run ". setuptex").
If you only want to play with luaTeX, here's something experimental
that you can test if you have rsync (no warranty that the structure
will remain the same):
rsync -rvzctl rsync://contextgarden.net/minimals/minimals/mac-ppc/ mytex
cd mytex
. setuptex
mktexlsr
luatools --generate
texexec --lua --make --all
texexec --make --all
and then you should be able to compile your document with
texexec --lua something
(as long as you stay in the same terminal)
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: LuaTeX on Mac OS X
[not found] ` <859EA456-9317-4AEB-9AE2-52AA0BFF57D6@mac.com>
@ 2007-10-11 19:26 ` Otared Kavian
2007-10-11 19:34 ` Hans Hagen
0 siblings, 1 reply; 22+ messages in thread
From: Otared Kavian @ 2007-10-11 19:26 UTC (permalink / raw)
To: Jeong Dalyoung; +Cc: mailing list for ConTeXt users
Dear Joeng, dear Thomas,
Thank you so much for your message and your invaluable help.
Indeed thanks to Thomas' instructions, after correcting a few
details, I could install LuaTeX and typeset the file test-1.tex with
the command
texexec --lua test-1.tex
However, the execution stops with this error message:
<everyjob> \the \everyloadluacode
\the \everyfinalizeluacode \the
\everyjob
but after ignoring such messages with the command
r
(meaning "run" without complaining...) I get the expected PDF file.
Since this is not yet a clean and thoroughly working installation, I
have not yet tried to put the install informations on the Wiki. Later
next week I'll try to re-install everything anew and see whether I
have well understood what is needed to run LuaTeX on MacOS X.
Best regards: OK
On 11 oct. 2007, at 17:22, Jeong Dalyoung wrote:
> Dear Otared,
>
> Finally, luatools is working in my system.
>
> I reinstalled gwTeX and followed Thomas' instruction.
> Also I got an advice from Lutz.
> She said that use the latest Luatex and stable version of Context.
> Hence I installed stable version of the ConTeXt.
> I also saved environment variables in a file .luatex and run it
> after open the terminal using 'source .luatex'
> After that luatools is working properly. As I wrote in the list, I
> need to add a line 'trie_size=400000' in texmf.cnf
>
> I tested a short file and it was working properly.
> However, I have an error when I compile a sample file in the wiki.
> I don't know why. I hope that someone answer to that question.
>
> Since I did it, you will do it. Maybe you already run luatools
> properly.
>
> Thank you.
>
> Best regards,
>
> Dalyoung
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: LuaTeX on Mac OS X
2007-10-11 19:26 ` Otared Kavian
@ 2007-10-11 19:34 ` Hans Hagen
0 siblings, 0 replies; 22+ messages in thread
From: Hans Hagen @ 2007-10-11 19:34 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Jeong Dalyoung
Otared Kavian wrote:
> Dear Joeng, dear Thomas,
>
> Thank you so much for your message and your invaluable help.
> Indeed thanks to Thomas' instructions, after correcting a few
> details, I could install LuaTeX and typeset the file test-1.tex with
> the command
>
> texexec --lua test-1.tex
--luatex
> However, the execution stops with this error message:
>
> <everyjob> \the \everyloadluacode
> \the \everyfinalizeluacode \the
> \everyjob
looks like pdftex is called
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: LuaTeX on Mac OS X
@ 2007-10-08 1:44 Dalyoung Jeong
0 siblings, 0 replies; 22+ messages in thread
From: Dalyoung Jeong @ 2007-10-08 1:44 UTC (permalink / raw)
To: mailing ConTeXt users list for
Dear Thomas,
I didn't recognize that there was an answer for the problem already.
It is a good news. I am almost close.
Thank you again.
Best regards,
Dalyoung
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: LuaTeX on Mac OS X
2007-10-06 3:47 Jeong Dalyoung
@ 2007-10-06 6:53 ` Thomas A. Schmitz
0 siblings, 0 replies; 22+ messages in thread
From: Thomas A. Schmitz @ 2007-10-06 6:53 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Oct 6, 2007, at 5:47 AM, Jeong Dalyoung wrote:
> Dear Thomas, Hans, and all
>
> I am sorry to give another noise to you. I did install luatex once
> more and I'd like to report the results.
>
A simple search in the archives would have brought up this thread
from yesterday:
http://archive.contextgarden.net/thread/20071005.055839.1a3f8676.en.html
which describes exactly your problem.
Thomas
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: LuaTeX on Mac OS X
@ 2007-10-06 3:47 Jeong Dalyoung
2007-10-06 6:53 ` Thomas A. Schmitz
0 siblings, 1 reply; 22+ messages in thread
From: Jeong Dalyoung @ 2007-10-06 3:47 UTC (permalink / raw)
To: ntg-context; +Cc: otared
Dear Thomas, Hans, and all
I am sorry to give another noise to you. I did install luatex once
more and I'd like to report the results.
I removed TeX completely and reinstalled gwTeX again.
After that I followed the instructions given by Thomas. I made
".luatex" for the variables which contains the following lines:
export TEXMFCACHE="/tmp"
export TEXMFCNF="/usr/local/gwTeX"
export TEXMF="{/Users/dalyoung/Library/texmf,/usr/local/gwTeX/
texmf.local,/usr/local/gwTeX/texmf.pkgs,/usr/local/gwTeX/texmf.gwtex,/
usr/local/gwTeX/texmf.texlive,/usr/local/gwTeX/texmf}"
export LUAINPUTS="{/usr/local/gwTeX/texmf.pkgs/tex/context/base,/usr/
local/gwTeX/texmf.pkgs/scripts/context/lua}"
After running "source .luatex", "luatools --generate" worked well.
I tried to run "luatools --ini --verbose --compile cont-en", but
there are several error occurred.
1. ...
loading : Context Language Macros / Initialization
(/usr/local/gwTeX/texmf.pkgs/tex/context/base/lang-ini.mkiv
! LuaTeX error ...local/gwTeX/texmf.pkgs/tex/context/base/lang-
ini.lua:9: attempt to index global 'lang' (a nil value).
\ctxluabytecode ...ode " .. "#1" .. str) end end }
\registerctxluafile ...{\the \luabytecodecounter }
\fi \fi
l.16 \registerctxluafile{lang-ini}{1.001}
?
[snip]
2. many of the following for all the languages.
Copyright 1990-2007 / PRAGMA ADE / J. Hagen - A.F. Otten
system (LUATEX) : [line 628]
)
system : cont-usr loaded
(/usr/local/gwTeX/texmf.pkgs/tex/context/config/cont-usr.tex
loading : User Settings
)
! LuaTeX error [string "luas[0]"]:1: attempt to call field
'register' (a nil value).
\mkdoloadpatterns ... #2.\f!hyphensextension }") }
\next1 #1,->\preloadallpatterns {#1}
\doprocesscommaitem
<argument> \relax nl,
fr,de,it,pt,hr,pl,cz,sk,sl,vn,ru,en,uk,us,agr,da,sv,af,...
\doprocesscommalist ...aitem \gobbleoneargument #1
,]\relax \global
\advance ...
\preloadallpatterns ...uages ]\preloadallpatterns
\global \let
\preloadallpa...
\loaduserspecifications ...se \preloadallpatterns
\fi
l.22 \loaduserspecifications
?
...
3.
! LuaTeX error [string "luas[0]"]:1: attempt to call field
'register' (a nil value).
\mkdoloadpatterns ... #2.\f!hyphensextension }") }
l.26 \installlanguage [\s!en] [\c!state=\v!start]
! LuaTeX error [string "luas[0]"]:1: attempt to call field
'register' (a nil value).
\mkdoloadpatterns ... #2.\f!hyphensextension }") }
l.27 \installlanguage [\s!uk] [\c!state=\v!start]
...
According to those lines, I assume that it is related with the
languages. But I really do not know both causes and cures.
Thank you so much for all the helps you gave.
Best regards,
Dalyoung
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: LuaTeX on Mac OS X
2007-10-04 9:12 Dalyoung Jeong
@ 2007-10-04 10:02 ` Mojca Miklavec
0 siblings, 0 replies; 22+ messages in thread
From: Mojca Miklavec @ 2007-10-04 10:02 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 10/4/07, Dalyoung Jeong <haksan@mac.com> wrote:
> Dear Thomas, Mojca, and Otared,
>
> Thank you for the instructions. I think that I followed the
> instructions of installation without problems. But I have a problem
> running luatools.
>
> A few week ago, I succeeded running luatools --generate, but not
> luatools --ini --... after making .luatex containg variables like
> TEXMF, TEXMFCNF, etc.
>
> I removed gwTeX and reinstalled MacTeX, I did the same steps of
> installation and I got the errors. At this time, even "luatools --
> generate" didn't run correctly. It is ooking for the wrong folder.
>
> I tried "setuptex"(copy setuptex to the binary, and chmod 755 to
> run), but it asked me to "provide a proper tex directory like /
> something/tex"
Because it's hardcoded in setuptex that one needs to have some files
at fixed locations. You can modify setuptex a bit according to your
needs (remove those explicit checks).
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: LuaTeX on Mac OS X
@ 2007-10-04 9:12 Dalyoung Jeong
2007-10-04 10:02 ` Mojca Miklavec
0 siblings, 1 reply; 22+ messages in thread
From: Dalyoung Jeong @ 2007-10-04 9:12 UTC (permalink / raw)
To: mailing list for ConTeXt users
Dear Thomas, Mojca, and Otared,
Thank you for the instructions. I think that I followed the
instructions of installation without problems. But I have a problem
running luatools.
A few week ago, I succeeded running luatools --generate, but not
luatools --ini --... after making .luatex containg variables like
TEXMF, TEXMFCNF, etc.
I removed gwTeX and reinstalled MacTeX, I did the same steps of
installation and I got the errors. At this time, even "luatools --
generate" didn't run correctly. It is ooking for the wrong folder.
I tried "setuptex"(copy setuptex to the binary, and chmod 755 to
run), but it asked me to "provide a proper tex directory like /
something/tex"
It seems to me that luatools are not able to get the texlive home
dirextory.
I may try once more using another mac because sometime it behaved
differently.
Thank you for your concern.
Best regards,
Dalyoung
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: LuaTeX on Mac OS X
2007-10-03 1:13 Jeong Dalyoung
2007-10-03 1:22 ` Arthur Reutenauer
@ 2007-10-03 6:14 ` Taco Hoekwater
1 sibling, 0 replies; 22+ messages in thread
From: Taco Hoekwater @ 2007-10-03 6:14 UTC (permalink / raw)
To: mailing list for ConTeXt users
Jeong Dalyoung wrote:
> Dear Hans,
>
> Thank you for your concern.
>
> There is no non-ascii character in folder names except ~/Documents/.
>
> And the TeX directory is
>
> /usr/local/texlive/{2007, texmf-local}/...
Do you have this in an environment variable including the space?
If so, I would advice trying the same without space, just in case.
Best wishes,
Taco
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: LuaTeX on Mac OS X
2007-10-03 1:13 Jeong Dalyoung
@ 2007-10-03 1:22 ` Arthur Reutenauer
2007-10-03 6:14 ` Taco Hoekwater
1 sibling, 0 replies; 22+ messages in thread
From: Arthur Reutenauer @ 2007-10-03 1:22 UTC (permalink / raw)
To: Mailing list for ConTeXt users
> By the way, where is setuptex command which can be used in Mac? I
> tried before as in the wiki, but it couldn't find such a command.
In the minimal distribution:
http://www.pragma-ade.com/context/install/macosxtex.zip
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: LuaTeX on Mac OS X
@ 2007-10-03 1:13 Jeong Dalyoung
2007-10-03 1:22 ` Arthur Reutenauer
2007-10-03 6:14 ` Taco Hoekwater
0 siblings, 2 replies; 22+ messages in thread
From: Jeong Dalyoung @ 2007-10-03 1:13 UTC (permalink / raw)
To: ntg-context
Dear Hans,
Thank you for your concern.
There is no non-ascii character in folder names except ~/Documents/.
And the TeX directory is
/usr/local/texlive/{2007, texmf-local}/...
By the way, where is setuptex command which can be used in Mac? I
tried before as in the wiki, but it couldn't find such a command.
Thank you again.
Best regards,
Dalyoung
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: LuaTeX on Mac OS X
2007-10-02 12:52 ` Henning Hraban Ramm
@ 2007-10-02 13:27 ` Hans Hagen
0 siblings, 0 replies; 22+ messages in thread
From: Hans Hagen @ 2007-10-02 13:27 UTC (permalink / raw)
To: mailing list for ConTeXt users
Henning Hraban Ramm wrote:
> Am 2007-10-02 um 14:27 schrieb Dalyoung Jeong:
>
>> if not md5.HEX then function md5.HEX(str) return convert(str,"%
>> 02X") end end
>> if not md5.hex then function md5.hex(str) return convert(str,"%
>> 02x") end end
>> if not md5.dec then function md5.dec(str) return convert(stt,"%
>> 03i") end end
>
> I don't really know Lua, but "stt" looks like an error (maybe
> Dalyoung's?),
> and if Lua makes a difference between unicode and byte strings,
> the usage of "str" would explain problems with Korean directory names
> or the like.
whow, pretty good close reading, should be str indeed!
this also points into the direction of a missing md5 lib; is texlua used?
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: LuaTeX on Mac OS X
2007-10-02 12:27 Dalyoung Jeong
2007-10-02 12:52 ` Henning Hraban Ramm
@ 2007-10-02 13:23 ` Hans Hagen
1 sibling, 0 replies; 22+ messages in thread
From: Hans Hagen @ 2007-10-02 13:23 UTC (permalink / raw)
To: mailing list for ConTeXt users
Dalyoung Jeong wrote:
> Dear Hans,
>
> Thank you for the reply.
>
> Here is the codes of luatools.lua from line number 1106 -
>
> %%%%%%%%%%%%%%%
> 1106: if md5 then do
>
> 1107: local function convert(str,fmt)
> 1108: return (string.gsub(md5.sum(str),".",function(chr)
> return string.format(fmt,string.byte(chr)) end))
> 1109: end
>
> if not md5.HEX then function md5.HEX(str) return convert(str,"%
> 02X") end end
> if not md5.hex then function md5.hex(str) return convert(str,"%
> 02x") end end
> if not md5.dec then function md5.dec(str) return convert(stt,"%
> 03i") end end
>
> end end
>
> %%%%%%%%%%%%%
>
> Since most people didn't have the problem in installation. it
> reminded me a problem when I installed the XeTeX a long time ago.
> After installed files of XeTeX, I tried to make a format, but I
> couldn't succeed. I reported the error message to XeTeX mailing list,
> but every one had no problem to install and to make a format. They
> said that it was good in their system.
> Finally Jonathan found that it was related with my OSX(OSX korean
> version) even though I put english at the top priority in the
> preference panel.
> He installed korean in his system to locate the problem and removed
> the problems.
>
> Is this problem related with my OSX?
how do your paths look like? do they contain non ascii chars?
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: LuaTeX on Mac OS X
2007-10-02 12:27 Dalyoung Jeong
@ 2007-10-02 12:52 ` Henning Hraban Ramm
2007-10-02 13:27 ` Hans Hagen
2007-10-02 13:23 ` Hans Hagen
1 sibling, 1 reply; 22+ messages in thread
From: Henning Hraban Ramm @ 2007-10-02 12:52 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 2007-10-02 um 14:27 schrieb Dalyoung Jeong:
> if not md5.HEX then function md5.HEX(str) return convert(str,"%
> 02X") end end
> if not md5.hex then function md5.hex(str) return convert(str,"%
> 02x") end end
> if not md5.dec then function md5.dec(str) return convert(stt,"%
> 03i") end end
I don't really know Lua, but "stt" looks like an error (maybe
Dalyoung's?),
and if Lua makes a difference between unicode and byte strings,
the usage of "str" would explain problems with Korean directory names
or the like.
Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: LuaTeX on Mac OS X
@ 2007-10-02 12:27 Dalyoung Jeong
2007-10-02 12:52 ` Henning Hraban Ramm
2007-10-02 13:23 ` Hans Hagen
0 siblings, 2 replies; 22+ messages in thread
From: Dalyoung Jeong @ 2007-10-02 12:27 UTC (permalink / raw)
To: mailing ConTeXt users list for
Dear Hans,
Thank you for the reply.
Here is the codes of luatools.lua from line number 1106 -
%%%%%%%%%%%%%%%
1106: if md5 then do
1107: local function convert(str,fmt)
1108: return (string.gsub(md5.sum(str),".",function(chr)
return string.format(fmt,string.byte(chr)) end))
1109: end
if not md5.HEX then function md5.HEX(str) return convert(str,"%
02X") end end
if not md5.hex then function md5.hex(str) return convert(str,"%
02x") end end
if not md5.dec then function md5.dec(str) return convert(stt,"%
03i") end end
end end
%%%%%%%%%%%%%
Since most people didn't have the problem in installation. it
reminded me a problem when I installed the XeTeX a long time ago.
After installed files of XeTeX, I tried to make a format, but I
couldn't succeed. I reported the error message to XeTeX mailing list,
but every one had no problem to install and to make a format. They
said that it was good in their system.
Finally Jonathan found that it was related with my OSX(OSX korean
version) even though I put english at the top priority in the
preference panel.
He installed korean in his system to locate the problem and removed
the problems.
Is this problem related with my OSX?
I hope that the line 1108 gives you a clue of my problem.
Thank you.
Best regards,
Dalyoung
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 22+ messages in thread
end of thread, other threads:[~2007-10-11 19:34 UTC | newest]
Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-01 21:31 LuaTeX on Mac OS X Otared Kavian
2007-10-02 6:36 ` Dalyoung Jeong
2007-10-02 7:56 ` Hans Hagen
2007-10-02 11:12 ` Wolfgang Schuster
2007-10-02 17:53 ` Thomas A. Schmitz
2007-10-04 6:28 ` Otared Kavian
2007-10-04 6:43 ` Thomas A. Schmitz
2007-10-04 8:24 ` Mojca Miklavec
[not found] ` <859EA456-9317-4AEB-9AE2-52AA0BFF57D6@mac.com>
2007-10-11 19:26 ` Otared Kavian
2007-10-11 19:34 ` Hans Hagen
2007-10-02 12:27 Dalyoung Jeong
2007-10-02 12:52 ` Henning Hraban Ramm
2007-10-02 13:27 ` Hans Hagen
2007-10-02 13:23 ` Hans Hagen
2007-10-03 1:13 Jeong Dalyoung
2007-10-03 1:22 ` Arthur Reutenauer
2007-10-03 6:14 ` Taco Hoekwater
2007-10-04 9:12 Dalyoung Jeong
2007-10-04 10:02 ` Mojca Miklavec
2007-10-06 3:47 Jeong Dalyoung
2007-10-06 6:53 ` Thomas A. Schmitz
2007-10-08 1:44 Dalyoung Jeong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).