[tex-live] Kpathsea cannot find mktex.opt

Reinhard Kotucha reinhard.kotucha at web.de
Wed Jul 10 01:25:03 CEST 2013


On 2013-07-10 at 00:54:22 +0900, Akira Kakuto wrote:

 > I'm not on Unix, so I cannot test, ...

Dear Akira,
you don't need a Unix system in order to test it.

Since you compile the W32TeX binaries from the Web2C sources I suppose
that you have Bash already installed on your machine, one way or
another.  You need at least something which understands the configure
scripts, right?

When I was new to Unix, I had severe problems with proper quoting,
especially when regular expressions were involved.  Thus I wrote a
program (in C) which simply prints argv to screen.  It helped a lot.
Later I recognized that such a program already exists on all Unix
systems: It's called 'echo'.  In Bash at least, echo is a built-in
function and you don't have to install anything else.

You can start Bash and type, for instance,

  echo cmd="$MF \\mode:=$MODE; mag:=$MAG; nonstopmode; input $NAME"

See what happens.  Non-existent environment variables are replaced
by empty strings, BTW.

If you want to see how the argument vector is split into single
arguments, it's better if each argument is displayed on a separate
line.  The following script (let's call it 'showargs') should do:

---------------------------------------
#!/bin/sh

for i in "$@"; do echo =\>"$i"\<=; done
---------------------------------------

$ echo "x     y"     z
x     y z

$ ./showargs "x     y"     z
=>x     y<=
=>z<=

I tell you this because I often feel more comfortable if I can test
things myself.  It often saves a lot of time.  After all, you don't
need anything but bash.exe on Windows and I would be quite surprised
if it's not installed on your machine already.

Regards,
  Reinhard

-- 
----------------------------------------------------------------------------
Reinhard Kotucha                                      Phone: +49-511-3373112
Marschnerstr. 25
D-30167 Hannover                              mailto:reinhard.kotucha at web.de
----------------------------------------------------------------------------
Microsoft isn't the answer. Microsoft is the question, and the answer is NO.
----------------------------------------------------------------------------


More information about the tex-live mailing list