[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#181882: tetex-base: Installation error: "kpsewhich: command not found"



Atsuhito Kohda wrote:
From: Eugen Dedu <Eugen.Dedu@prism.uvsq.fr>
Subject: Bug#181882: tetex-base: Installation error: "kpsewhich: command not found"
Date: Fri, 21 Feb 2003 13:56:49 +0100


Unpacking tetex-base (from .../tetex-base_2.0.1-1_all.deb) ...
Setting up tetex-base (2.0.1-1) ...
/var/lib/dpkg/info/tetex-base.postinst: line 1: kpsewhich: command not
found


If possible, please try the following;

- edit /var/lib/dpkg/info/tetex-base.postinst in the line 60

    if [ -x ${UPDMAP} -a -x /usr/bin/updmap -a -f ${BASEMAP} -a X"`kpsewhich --expand-var='$TEXMFMAIN'`" = X"/usr/share/texmf" ]; then

to

    if [ -x ${UPDMAP} -a -x /usr/bin/updmap -a -f ${BASEMAP} -a -x /usr/bin/kpsewhich -a X"`kpsewhich --expand-var='$TEXMFMAIN'`" = X"/usr/share/texmf" ]; then

Adding a `-x /usr/bin/kpsewhich' before using it does not solve the problem, because it seems that ALL the `and' clauses are executed:

eminescu:~$ if [ -x /usr/bin/kpsewhich ]; then echo one; else echo two; fi
two
eminescu:~$ if [ -x /usr/bin/kpsewhich -a X"`kpsewhich --expand-var='$TEXMFMAIN'`" = X"/usr/share/texmf" ]; then echo one; else echo two; fi
bash: kpsewhich: command not found
two
eminescu:~$

A check for existence of /usr/bin/kpsewhich should be done probably before the if.

Eugen




Reply to: