Re: pdflatex build error: Mismatched LaTeX support files detected

2023-06-21 Thread Rich Shepard

On Wed, 21 Jun 2023, Steve Litt wrote:


Several years ago I de-installed the distro-provided TeXLive and used only
TUG provided TeXLive (with tlmgr), and I've been very happy ever since. My
experience is that I got very weird intermittent appearing errors when
both were installed.


I had no expectation there would be distro installed files that weren't
removed when I removed the TL packages. Removing those remnant files
eliminated the error I got when running a document through pdflatex.

All's well now.

Rich
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: pdflatex build error: Mismatched LaTeX support files detected

2023-06-21 Thread Steve Litt
Herbert Voss said on Tue, 20 Jun 2023 07:01:36 +0200


>Rich,
>
>that looks like a mismatch between TeXLive from TUG 
>(/usr/local/texlive/)
>and from your  linux distribution (/usr/share/tex...)
>
>what is the output of
>which -a fmtutil-sys

Several years ago I de-installed the distro-provided TeXLive and used
only TUG provided TeXLive (with tlmgr), and I've been very happy ever
since. My experience is that I got very weird intermittent
appearing errors when both were installed.

SteveT

Steve Litt 
Autumn 2022 featured book: Thriving in Tough Times
http://www.troubleshooters.com/bookstore/thrive.htm
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: pdflatex build error: Mismatched LaTeX support files detected

2023-06-20 Thread Rich Shepard

On Tue, 20 Jun 2023, Herbert Voss wrote:


that looks like a mismatch between TeXLive from TUG
(/usr/local/texlive/) and from your linux distribution
(/usr/share/tex...)


Herbert,

I removed the SBo TL packages so there shouldn't be conflicts. Regardless,
if there was something left behind it should be cleared out.


what is the output of
which -a fmtutil-sys


/usr/share/texmf/bin/fmtutil-sys

Yep. There are too many of them:
$ locate fmtutil-sys
/usr/share/texmf/bin/fmtutil-sys
/usr/share/texmf/man/man1/fmtutil-sys.1.gz
/usr/local/texlive/2023/bin/x86_64-linux/fmtutil-sys
/usr/local/texlive/2023/texmf-dist/scripts/texlive/fmtutil-sys.sh
/usr/local/texlive/2023/texmf-dist/doc/man/man1/fmtutil-sys.1
/usr/local/texlive/2023/texmf-dist/doc/man/man1/fmtutil-sys.man1.pdf

I'll remove the ones in /usr/share/texmf/; that's where the SBo TLs lived.
Actually, I can remove all of /usr/share/texmf/ because files there all date
from 2004-2016.

Thanks for making me aware of this.


Running fmtutil-sys is in general done by the update manager of TeXLive
and only in specific cases by the user.


Oh. So much to learn, so little time.

Many thanks ... again.

Best regards,

Rich
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: pdflatex build error: Mismatched LaTeX support files detected

2023-06-19 Thread Herbert Voss



Am 19.06.23 um 22:16 schrieb Rich Shepard:

### 


fmtutil: Error! Not all formats have been built successfully.
Visit the log files in directory
  /usr/share/texmf-var/web2c
for details.
### 






Rich,

that looks like a mismatch between TeXLive from TUG 
(/usr/local/texlive/)

and from your  linux distribution (/usr/share/tex...)

what is the output of
which -a fmtutil-sys





This is a summary of all `failed' messages and warnings:
`pdfetex -ini  -jobname=amstex -progname=amstex 
-translate-file=cp227.tcx *amstex.ini' failed
`pdfetex -ini  -jobname=bamstex -progname=bamstex 
-translate-file=cp227.tcx bamstex.ini' failed


What do I read to learn how to properly build amstex and bamstex?


Running fmtutil-sys is in general done by the update manager of TeXLive and
only in specific cases by the user.

Herbert







In this case you get local format or system format files.


Different errors when run by user and root.

Thanks,

Rich


--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: pdflatex build error: Mismatched LaTeX support files detected

2023-06-19 Thread Rich Shepard

On Mon, 19 Jun 2023, Herbert Voss wrote:

Herbert,

I'm the only user of this host.


fmtutil-sys --all

$ fmtutil-sys --all
fmtutil: fmtutil is using the following fmtutil.cnf files (in precedence order):
fmtutil:   /usr/local/texlive/2023/texmf-dist/web2c/fmtutil.cnf
fmtutil: fmtutil is using the following fmtutil.cnf file for writing changes:
fmtutil:   /usr/local/texlive/2023/texmf-config/web2c/fmtutil.cnf
fmtutil [ERROR]: format directory not writable: 
/usr/local/texlive/2023/texmf-var/web2c

Huh. Looks okay to me:
$ ll /usr/local/texlive/2023/texmf-var/
total 28
drwxr-xr-x  6 root root 4096 May 23 15:52 fonts/
-rw-r--r--  1 root root 3689 Jun 14 06:03 ls-R
drwxr-xr-x  3 root root 4096 May 23 15:50 luametatex-cache/
drwxr-xr-x  3 root root 4096 May 23 15:50 luatex-cache/
drwxr-xr-x  4 root root 4096 May 23 14:35 tex/
drwxr-xr-x 14 root root 4096 May 23 15:50 web2c/
drwxr-xr-x  2 root root 4096 May 23 14:35 xdvi/


and
sudo fmtutil-sys --all

 ...
###
fmtutil: Error! Not all formats have been built successfully.
Visit the log files in directory
  /usr/share/texmf-var/web2c
for details.
###

This is a summary of all `failed' messages and warnings:
`pdfetex -ini  -jobname=amstex -progname=amstex -translate-file=cp227.tcx 
*amstex.ini' failed
`pdfetex -ini  -jobname=bamstex -progname=bamstex -translate-file=cp227.tcx 
bamstex.ini' failed

What do I read to learn how to properly build amstex and bamstex?


In this case you get local format or system format files.


Different errors when run by user and root.

Thanks,

Rich
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: pdflatex build error: Mismatched LaTeX support files detected

2023-06-19 Thread Rich Shepard

On Mon, 19 Jun 2023, Paul A. Rubin wrote:


I think the stuff about UTF-8 right above the error message has nothing to
do with the error. The error just got discovered after that log line.


Paul,

Makes sense to me.


Taking the error message at face value, it looks like you somehow ended up
with a very recent (June 2023) version of TeXLive with a not quite so
recent (May '23) version of one of the files (expl3.sty). So maybe an
installation or update of TeXLive got bollixed up? At any rate, it's
unrelated to LyX. Somebody reported this

with an earlier version of TeXLive and posted what looks like a fix.


Yes, I did a tl update earlier this month. Just did another one (34 updates
packages.) Perhaps I need to make this a weekly cron task for root.

Thanks for the URL. Reading that thread I just ran `fmtutil-sys --all' and
now have a different issue:
##
fmtutil: Error! Not all formats have been built successfully.
Visit the log files in directory
  /usr/share/texmf-var/web2c
for details.
###

This is a summary of all `failed' messages and warnings:
`pdfetex -ini  -jobname=amstex -progname=amstex -translate-file=cp227.tcx 
*amstex.ini' failed
`pdfetex -ini  -jobname=bamstex -progname=bamstex -translate-file=cp227.tcx 
bamstex.ini' failed

There are 14 .log files in web2c. Guess that's where my afternoon will be
spent.

Thanks,

Rich


--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: pdflatex build error: Mismatched LaTeX support files detected

2023-06-19 Thread Herbert Voss



Am 19.06.23 um 19:52 schrieb Rich Shepard:

The problem seems to be a biblatex/utf8 issue. The whole error log is
attached and the error starts at line 500.

Please teach me how to fix this and avoid future occurrences.



it is a problem with your different latex (expl3) files, they don't match
with its versions. Run an update

(sudo)  tlmgr --self --all update

and run the document again.

However, if you have _local_ versions of latex3 files, then it maybe more
diffucult to fix it.

Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: pdflatex build error: Mismatched LaTeX support files detected

2023-06-19 Thread Paul A. Rubin

On 6/19/23 13:52, Rich Shepard wrote:

The problem seems to be a biblatex/utf8 issue. The whole error log is
attached and the error starts at line 500.

Please teach me how to fix this and avoid future occurrences.

TIA,

Rich

I think the stuff about UTF-8 right above the error message has nothing 
to do with the error. The error just got discovered after that log line.


Taking the error message at face value, it looks like you somehow ended 
up with a very recent (June 2023) version of TeXLive with a not quite so 
recent (May '23) version of one of the files (expl3.sty). So maybe an 
installation or update of TeXLive got bollixed up? At any rate, it's 
unrelated to LyX. Somebody reported this 
 
with an earlier version of TeXLive and posted what looks like a fix.


Paul
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: pdflatex build error: Mismatched LaTeX support files detected

2023-06-19 Thread Rich Shepard

On Mon, 19 Jun 2023, Rich Shepard wrote:


The problem seems to be a biblatex/utf8 issue. The whole error log is
attached and the error starts at line 500.


Er, not so. This just popped up again in a different doc without a
bibliography. But, a second ctrl-h to copy the whole error log produced the
.pdf.

With the first doc, a new ctrl-h also resulted in the .pdf being produced.

I'd still like to understand the error, but since I can send these docs to
my client there's no rush.

Regards,

Rich
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users