tetex problems: postinstall hangs, format not installed, root can run latex

2005-04-14 Thread d j
Dear all,

When I recently upgraded various cygwin components,
including tetex, several things have gone wrong. I am
baffled as cygwin is running fine on my home machine,
which is very similar (but has local accounts and not
networked accounts).

After much tweaking (see below), my status is that
only admin can run latex (problem 3). Any help would
be appreciated. 

PROBLEM 1: 
postinstall of tetex hangs indefinetely:

PATCH:
line 98 of post-texmf.sh should be
configps=$(/usr/bin/find /usr/share/texmf/dvips -name
config.ps)
I added /usr/bin to make sure windows find wasn't
used.

PROBLEM 2:
even after removing tetex, I ended up with files in 
/var/cache/fonts that were non-removable. Even admin
doesn't have rights to ENTER this directory. 

I did solve it, but more or less by accident. Any
structural insights are welcome

PROBLEM 3:
After the above, post-install runs and everything
seems
fine but normal users still cannot run latex, because
latex.fmt is missing and persmission are denied on
/usr/share/texmf/ls-R.

Again, thanks for any help.
Dirk

Attached: 
- partial log
- output of cygcheck

---
PARTIAL LOG

1. texmf hangs endlessly in postinstall
2. ran postinstall-texmf.sh as administrator and got
endless amounts of 'permission denied' 
  errors, plus a hanging script at a point where it
does a 'find (something) -name config.ps' 
---
+ texconfig-sys dvips printcmd -
+ echo -n Checking for psfonts.map in config.ps...
Checking for psfonts.map in config.ps... + find
/usr/share/texmf/dvips -name config.ps
FIND: Invalid switch
+ configps=
+ grep +psfonts
-

3. uninstalled all texmf related stuff and rebooted
4. started cmd as admin and got this:

c:\cygwin\var\cache>ls -ld fonts
drwxrwx--T+ 2 dpj Domain Users 0 Apr 14 13:29 fonts

c:\cygwin\var\cache>whoami
Administrator

c:\cygwin\var\cache>cd fonts
Access is denied.

c:\cygwin\var\cache>rm -rf fonts
rm: cannot chdir from `.' to `fonts': Permission
denied

c:\cygwin\var\cache>rmdir /s fonts
fonts, Are you sure (Y/N)? y
Access is denied.

How can I have files that administrator cannot access
and, more importantly, how do I get rid of them?
  (PROBLEM 2)

Here is what I did, not sure what made it go away:
- disabled auto starting of Cygwin SSHD in control
panel
- logged in as administrator (as compared to a
runas-cmd shell used above)
- remove grey-out read-only mark from fonts folder in
the file properties in explorer, 
  ie right click on the /var/cache/fonts folder in
explorer and uncheck the ro flag
- ran a cmd prompt and issued chmod 0777
/var/cache/fonts
- after all this, i still couldn't remove the file as
root, but when I then logged in as 
  myself (the owner of the directory) I could remove
it in the explorer.
- made sure /usr/share/texmf did not exist any more
(it didn't)
- installed the tetex helper package, which pulled the
rest of tetex in.

However: Post-texmf.sh hung again, or so it seemed.
Solution: It just takes a REALLY LONG time, 
about 8 minutes on fairly modern machine. Maybe all
that needs changed here is the progress indicator,
or a small message "post-install for texmf may take
upto 10 minutes".

BUT:
$ latex cvuk.tex
/usr/share/texmf/ls-R: Permission denied
/usr/share/texmf/ls-r: Permission denied
/usr/share/texmf/ls-R: Permission denied
/usr/share/texmf/ls-r: Permission denied
/usr/share/texmf/ls-R: Permission denied
/usr/share/texmf/ls-r: Permission denied
/var/cache/fonts/ls-R: Permission denied
/var/cache/fonts/ls-r: Permission denied
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
/usr/share/texmf/ls-R: Permission denied
/usr/share/texmf/ls-r: Permission denied
/usr/share/texmf/ls-R: Permission denied
/usr/share/texmf/ls-r: Permission denied
/usr/share/texmf/ls-R: Permission denied
/usr/share/texmf/ls-r: Permission denied
/var/cache/fonts/ls-R: Permission denied
/var/cache/fonts/ls-r: Permission denied
tcfmgr: config file `tcfmgr.map' (usually in
$TEXMFMAIN/texconfig) not found.
fmtutil: config file `fmtutil.cnf' not found.
I can't find the format file `latex.fmt'!

As admin, I chmod'ed both /var/cache/fonts/ls-R and
/usr/share/texmf/ls-R to Users.
then ran postinstall-texmf.sh.done again (as admin)


---
fmtutil: Error! Not all formats have been built
successfully.
Visit the log files in directory
  /var/lib/texmf/web2c
for details.
---
this directory /var/lib is, you guessed it,
inaccessible.

Also, the install script again was hung. I changed the
invocation of
find to /usr/bin/find, which solved the problem.

Still, users cannot run latex, same error as above.
Admin can run it.


---


Cygwin Configuration Diagnostics
Current System Time: Thu Apr 14 15:43:04 2005

Windows XP Professional Ver 5.1 Build 2600 Service
Pack 2

Path:   C:\cygwin\usr\local\bin
C:\cygwin\bin
C:\cygwin\bin
C:\cy

tetex (latex) permission problem on NT

2004-03-09 Thread d j

Dear All,

I could not find any reference to this anywhere, so
FYI or maybe for the FAQ:

Running Cygwin 1.5.7-1 on XP professional, any attempt
to run latex produced an immediate permission error on
texmf.cnf ('cannot access', if I recall well). I
noticed that some of the files in the texmf subdir
have a  'group' property of Users, other of 'None'
(which is everyone, afaik). 

I logged in to XP as Admin and recursively allowed
Users access to files/directories under texmf. This
solved the problem.

I think my problem was related to the fact that my
login is domain controlled (ie not local to the
machine). This renders me a member of the group Users,
who don't have access to all files in the texmf
directory. 

I am not exactly an expert on the confusing topic of
NT vs unix vs cygwin permissions, so correct me if
what I did is overkill.

CHeers,
Dirk
 


__
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster
http://search.yahoo.com

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/