This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: tetex on Vista

I received identical error messages on a recent WinXP w/ CYGWIN=nontsec
install. Looking through /var/log/setup.log.full, I found that the tetex
post-install script (/etc/postinstall/ was generating a lot of
non-fatal errors regarding unwritable directories (/usr/share/texmf,
/var/cache/fonts). ls and stat reported that the directories are indeed
read-only; however, I was successfully able to touch a new file in each.
Such behavior seems identical to the read-only DOS directory attribute
problem referenced in:

I think that the fix for the read-only attribute will correct the problem
with the tetex install (or at least my problem). As a short term solution, I
edited several script files called by to remove directory
writability tests. I also removed a couple of chmod commands that copied
directory permissions to files (thereby making them read-only). I then
deleted files '/var/cache/fonts/ls-R', '/var/lib/texmf/ls-R', &
'/usr/share/texmf/ls-R' and reran (actually I suspect that deleting the 'ls-R' files is not

Below is diff's output of changes to the tetex-bin script files:

diff ./old/fmtutil /bin/fmtutil
<   test -w "$destdir" || abort "format directory \`$destdir' is not
diff ./old/mktexlsr /bin/mktexlsr
<   test -w "$db_dir" || { echo "$progname: $db_dir: directory not writable.
Skipping..." >&2; continue; }
<     # Use same permissions as parent directory, minus x,s, or t bits.
<     chmod `kpsestat -xst "$db_dir"` "$db_file"
<   # To be really safe, a loop.
<   until PERMS=`kpsestat = "$db_file"`; do sleep 1; done
<   chmod $PERMS "$db_file_tmp"
diff ./old/texlinks /bin/texlinks
<   kpseaccess -w "$symlinkdir" || return 1
<     kpseaccess -w $d \
<       || { errmsg "$d: no write permissions. Skipping..."; continue; }
diff ./old/updmap /bin/updmap
<     test -w "$d" || abort "output directory \`$d' is not writable"
<   if test -d "$dir" && test -w "$dir"; then
>   if test -d "$dir"; then

The default installation of Cygwin tetex does not seem to have the
right permissions for Vista to be happy (with User Account Protection
turned on, as is default).  Here is an example of an error message:

$ latex filename.tex
This is pdfeTeXk, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
  file:line:error style messages enabled.
  %&-line parsing enabled.
kpathsea: Running mktexfmt latex.fmt
tcfmgr: config file `' (usually in $TEXMFMAIN/texconfig) not
fmtutil: config file `fmtutil.cnf' not found.
I can't find the format file `latex.fmt'!

View this message in context:
Sent from the Cygwin list mailing list archive at

Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]