I just tried to install Lyx from the 1.3.6-1 RPMs.

It can't find the commands kpsewhich and texhash, which is weird because they are both in the global path. The TeX is a new full install from the
TeX Collection DVD.

How do I get around this? Is the postinstall script SUing to some
strange UID (the RPM install is done as root, of course).

This happens for both xforms and qt versions (tried both) and now they
won't uninstall cleanly either, because they're trying to undo stuff
that never got done.

///Peter

Log:
[EMAIL PROTECTED] software]# ls -l lyx*
-rw-rw-r--  1 peter peter 5972575 Sep  9 00:54 lyx-1.3.6-1fc3_qt.i386.rpm
-rw-rw-r-- 1 peter peter 5935162 Sep 9 00:54 lyx-1.3.6-1fc3_xforms.i386.rpm
[EMAIL PROTECTED] software]# rpm -hiv lyx-1.3.6-1fc3_qt.i386.rpm
Preparing... ########################################### [100%] 1:lyx ########################################### [100%]
/var/tmp/rpm-tmp.64953: line 2: texhash: command not found
Configuring LyX for your system...
checking for a LaTeX2e program... (latex latex2e)
+checking for "latex"... no
+checking for "latex2e"... no
checking for a LaTeX -> LyX converter... (reLyX)
+checking for "reLyX"... yes
checking for a Noweb -> LyX converter... (noweb2lyx)
+checking for "noweb2lyx"... yes
checking for a Noweb -> LaTeX converter... (noweave)
+checking for "noweave"... no
checking for a HTML -> Latex converter... (html2latex)
+checking for "html2latex"... no
checking for a MSWord -> Latex converter... (wvCleanLatex word2x)
+checking for "wvCleanLatex"... no
+checking for "word2x"... no
checking for Image converter... (convert)
+checking for "convert"... yes
checking for a Postscript previewer... (gsview32 gv ghostview)
+checking for "gsview32"... no
+checking for "gv"... yes
checking for a PDF preview... (acrobat acrord32 gsview32 acroread gv ghostview xpdf)
+checking for "acrobat"... no
+checking for "acrord32"... no
+checking for "gsview32"... no
+checking for "acroread"... no
+checking for "gv"... yes
checking for a DVI previewer... (xdvi windvi yap)
+checking for "xdvi"... no
+checking for "windvi"... no
+checking for "yap"... no
checking for a HTML previewer... (mozilla file://$$p$$i netscape)
+checking for "mozilla"... yes
checking for a PS to PDF converter... (ps2pdf13 $$i)
+checking for "ps2pdf13"... yes
checking for a DVI to PS converter... (dvips)
+checking for "dvips"... no
checking for a DVI to PDF converter... (dvipdfm)
+checking for "dvipdfm"... no
checking for a *roff formatter... (groff -t -Tlatin1 $$FName nroff)
+checking for "groff"... yes
checking for ChkTeX... (chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38)
+checking for "chktex"... no
checking for a spell-checker... (ispell)
+checking for "ispell"... yes
checking for Octave... (octave)
+checking for "octave"... no
checking for Maple... (maple)
+checking for "maple"... no
checking for a fax program... (kdeprintfax ksendfax)
+checking for "kdeprintfax"... yes
checking for SGML-tools 1.x (LinuxDoc)... (sgml2lyx)
+checking for "sgml2lyx"... yes
checking for SGML-tools 2.x (DocBook) or db2x scripts... (sgmltools db2dvi)
+checking for "sgmltools"... no
+checking for "db2dvi"... yes
checking for a spool command... (lp lpr)
+checking for "lp"... yes
checking for a LaTeX -> HTML converter... (tth latex2html hevea)
+checking for "tth"... no
+checking for "latex2html"... no
+checking for "hevea"... no
checking LaTeX configuration... default values
+checking list of textclasses... done
creating packages.lst
creating doc/LaTeXConfig.lyx
checking whether TeX allows spaces in file names... creating lyxrc.defaults
checking for an FIG -> EPS/PPM converter... (fig2dev)
+checking for "fig2dev"... no
checking for an TIFF -> PS converter... (tiff2ps)
+checking for "tiff2ps"... yes
checking for an TGIF -> EPS/PPM converter... (tgif)
+checking for "tgif"... no
checking for an EPS -> PDF converter... (epstopdf)
+checking for "epstopdf"... no
checking for a Grace -> Image converter... (gracebat)
+checking for "gracebat"... no
checking for TeX fonts
+checking for cmex10... ./configure: line 1584: kpsewhich: command not found
./configure: line 1584: kpsewhich: command not found
./configure: line 1584: kpsewhich: command not found
no
+checking for cmmi10... ./configure: line 1584: kpsewhich: command not found
./configure: line 1584: kpsewhich: command not found
./configure: line 1584: kpsewhich: command not found
no
+checking for cmr10... ./configure: line 1584: kpsewhich: command not found
./configure: line 1584: kpsewhich: command not found
./configure: line 1584: kpsewhich: command not found
no
+checking for cmsy10... ./configure: line 1584: kpsewhich: command not found
./configure: line 1584: kpsewhich: command not found
./configure: line 1584: kpsewhich: command not found
no
+checking for eufm10... ./configure: line 1584: kpsewhich: command not found
./configure: line 1584: kpsewhich: command not found
./configure: line 1584: kpsewhich: command not found
no
+checking for msam10... ./configure: line 1584: kpsewhich: command not found
./configure: line 1584: kpsewhich: command not found
./configure: line 1584: kpsewhich: command not found
no
+checking for msbm10... ./configure: line 1584: kpsewhich: command not found
./configure: line 1584: kpsewhich: command not found
./configure: line 1584: kpsewhich: command not found
no
+checking for wasy10... ./configure: line 1584: kpsewhich: command not found
./configure: line 1584: kpsewhich: command not found
./configure: line 1584: kpsewhich: command not found
no
mv: cannot stat `xfonts/fonts.dir': No such file or directory
mv: cannot stat `xfonts/fonts.dir.new': No such file or directory
removing font links
[EMAIL PROTECTED] software]# kpsewhich
Missing argument. Try `kpsewhich --help' for more information.
[EMAIL PROTECTED] software]#

kpswhich is clearly there and working.
OK, so try to remove it and install the xforms one:

[EMAIL PROTECTED] software]# rpm -e lyx-1.3.6-1_qt
/var/tmp/rpm-tmp.6476: line 3: texhash: command not found
error: %postun(lyx-1.3.6-1_qt.i386) scriptlet failed, exit status 127
[EMAIL PROTECTED] software]# texhash
texhash: Updating /usr/TeX/texmf-var/ls-R...
texhash: Updating /usr/local/texmf-local/ls-R...
texhash: Updating /usr/TeX/texmf/ls-R...
texhash: Updating /usr/TeX/texmf-dist/ls-R...
texhash: Done.
[EMAIL PROTECTED] software]# rpm -hiv --force lyx-1.3.6-1fc3_xforms.i386.rpm xforms-1.0-4.i386.rpm warning: xforms-1.0-4.i386.rpm: Header V3 DSA signature: NOKEY, key ID 1ac70ce6 Preparing... ########################################### [100%] 1:xforms ########################################### [ 50%] 2:lyx ########################################### [100%]
/var/tmp/rpm-tmp.51464: line 2: texhash: command not found
Configuring LyX for your system...
checking for a LaTeX2e program... (latex latex2e)
+checking for "latex"... no
+checking for "latex2e"... no
checking for a LaTeX -> LyX converter... (reLyX)
+checking for "reLyX"... yes
checking for a Noweb -> LyX converter... (noweb2lyx)
+checking for "noweb2lyx"... yes
checking for a Noweb -> LaTeX converter... (noweave)
+checking for "noweave"... no
checking for a HTML -> Latex converter... (html2latex)
+checking for "html2latex"... no
checking for a MSWord -> Latex converter... (wvCleanLatex word2x)
+checking for "wvCleanLatex"... no
+checking for "word2x"... no
checking for Image converter... (convert)
+checking for "convert"... yes
checking for a Postscript previewer... (gsview32 gv ghostview)
+checking for "gsview32"... no
+checking for "gv"... yes
checking for a PDF preview... (acrobat acrord32 gsview32 acroread gv ghostview xpdf)
+checking for "acrobat"... no
+checking for "acrord32"... no
+checking for "gsview32"... no
+checking for "acroread"... no
+checking for "gv"... yes
checking for a DVI previewer... (xdvi windvi yap)
+checking for "xdvi"... no
+checking for "windvi"... no
+checking for "yap"... no
checking for a HTML previewer... (mozilla file://$$p$$i netscape)
+checking for "mozilla"... yes
checking for a PS to PDF converter... (ps2pdf13 $$i)
+checking for "ps2pdf13"... yes
checking for a DVI to PS converter... (dvips)
+checking for "dvips"... no
checking for a DVI to PDF converter... (dvipdfm)
+checking for "dvipdfm"... no
checking for a *roff formatter... (groff -t -Tlatin1 $$FName nroff)
+checking for "groff"... yes
checking for ChkTeX... (chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38)
+checking for "chktex"... no
checking for a spell-checker... (ispell)
+checking for "ispell"... yes
checking for Octave... (octave)
+checking for "octave"... no
checking for Maple... (maple)
+checking for "maple"... no
checking for a fax program... (kdeprintfax ksendfax)
+checking for "kdeprintfax"... yes
checking for SGML-tools 1.x (LinuxDoc)... (sgml2lyx)
+checking for "sgml2lyx"... yes
checking for SGML-tools 2.x (DocBook) or db2x scripts... (sgmltools db2dvi)
+checking for "sgmltools"... no
+checking for "db2dvi"... yes
checking for a spool command... (lp lpr)
+checking for "lp"... yes
checking for a LaTeX -> HTML converter... (tth latex2html hevea)
+checking for "tth"... no
+checking for "latex2html"... no
+checking for "hevea"... no
checking LaTeX configuration... default values
+checking list of textclasses... done
creating packages.lst
creating doc/LaTeXConfig.lyx
checking whether TeX allows spaces in file names... creating lyxrc.defaults
checking for an FIG -> EPS/PPM converter... (fig2dev)
+checking for "fig2dev"... no
checking for an TIFF -> PS converter... (tiff2ps)
+checking for "tiff2ps"... yes
checking for an TGIF -> EPS/PPM converter... (tgif)
+checking for "tgif"... no
checking for an EPS -> PDF converter... (epstopdf)
+checking for "epstopdf"... no
checking for a Grace -> Image converter... (gracebat)
+checking for "gracebat"... no
checking for TeX fonts
+checking for cmex10... ./configure: line 1584: kpsewhich: command not found
./configure: line 1584: kpsewhich: command not found
./configure: line 1584: kpsewhich: command not found
no
+checking for cmmi10... ./configure: line 1584: kpsewhich: command not found
./configure: line 1584: kpsewhich: command not found
./configure: line 1584: kpsewhich: command not found
no
+checking for cmr10... ./configure: line 1584: kpsewhich: command not found
./configure: line 1584: kpsewhich: command not found
./configure: line 1584: kpsewhich: command not found
no
+checking for cmsy10... ./configure: line 1584: kpsewhich: command not found
./configure: line 1584: kpsewhich: command not found
./configure: line 1584: kpsewhich: command not found
no
+checking for eufm10... ./configure: line 1584: kpsewhich: command not found
./configure: line 1584: kpsewhich: command not found
./configure: line 1584: kpsewhich: command not found
no
+checking for msam10... ./configure: line 1584: kpsewhich: command not found
./configure: line 1584: kpsewhich: command not found
./configure: line 1584: kpsewhich: command not found
no
+checking for msbm10... ./configure: line 1584: kpsewhich: command not found
./configure: line 1584: kpsewhich: command not found
./configure: line 1584: kpsewhich: command not found
no
+checking for wasy10... ./configure: line 1584: kpsewhich: command not found
./configure: line 1584: kpsewhich: command not found
./configure: line 1584: kpsewhich: command not found
no
mv: cannot stat `xfonts/fonts.dir': No such file or directory
mv: cannot stat `xfonts/fonts.dir.new': No such file or directory
removing font links
[EMAIL PROTECTED] software]#

Now LyX executes but warns me it can't find article.cls
(it's in the normal place: /usr/TeX/texmf-dist/tex/latex/base/article.cls

What's going on here?

///Peter

Reply via email to