Discussion:
Latex not working in 12.3
Josef Wolf
2013-07-31 08:34:40 UTC
Permalink
Hello,

when running latex in 12.3, I get the following error:

$ latex labels.tex
This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012/TeX Live for SUSE Linux)
restricted \write18 enabled.
/var/lib/texmf/web2c/pdftex/latex.fmt: Permission denied
/var/lib/texmf/web2c/pdftex/latex.fmt: Permission denied
/var/lib/texmf/web2c/pdftex/latex.fmt: Permission denied
/var/lib/texmf/web2c/pdftex/latex.fmt: Permission denied

kpathsea: Running mktexfmt latex.fmt
fmtutil: format directory `/var/lib/texmf/web2c' is not writable.
I can't find the format file `latex.fmt'!
$

Searching the web, I found

http://forums.opensuse.org/english/get-technical-help-here/applications/485227-problems-latex-opensuse-12-3-a.html#post2542602

and

https://forums.opensuse.org/english/get-technical-help-here/applications/484928-kile-lyx-texlive.html#post2540021

but installing texlive-collection-latexextra, texlive-collection-fontsextra and
texlive-filesystem did not help at all.

Any additional recommendations?
--
Josef Wolf
***@raven.inka.de
--
To unsubscribe, e-mail: opensuse+***@opensuse.org
To contact the owner, e-mail: opensuse+***@opensuse.org
Marcus Meissner
2013-07-31 09:48:23 UTC
Permalink
Post by Josef Wolf
Hello,
$ latex labels.tex
This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012/TeX Live for SUSE Linux)
restricted \write18 enabled.
/var/lib/texmf/web2c/pdftex/latex.fmt: Permission denied
/var/lib/texmf/web2c/pdftex/latex.fmt: Permission denied
/var/lib/texmf/web2c/pdftex/latex.fmt: Permission denied
/var/lib/texmf/web2c/pdftex/latex.fmt: Permission denied
kpathsea: Running mktexfmt latex.fmt
fmtutil: format directory `/var/lib/texmf/web2c' is not writable.
I can't find the format file `latex.fmt'!
$
Searching the web, I found
http://forums.opensuse.org/english/get-technical-help-here/applications/485227-problems-latex-opensuse-12-3-a.html#post2542602
and
https://forums.opensuse.org/english/get-technical-help-here/applications/484928-kile-lyx-texlive.html#post2540021
but installing texlive-collection-latexextra, texlive-collection-fontsextra and
texlive-filesystem did not help at all.
Any additional recommendations?
Open a bugreport.

Ciao, Marcus
--
To unsubscribe, e-mail: opensuse+***@opensuse.org
To contact the owner, e-mail: opensuse+***@opensuse.org
Dr. Werner Fink
2013-07-31 10:28:13 UTC
Permalink
Post by Marcus Meissner
Post by Josef Wolf
Hello,
$ latex labels.tex
This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012/TeX Live for SUSE Linux)
restricted \write18 enabled.
/var/lib/texmf/web2c/pdftex/latex.fmt: Permission denied
/var/lib/texmf/web2c/pdftex/latex.fmt: Permission denied
/var/lib/texmf/web2c/pdftex/latex.fmt: Permission denied
/var/lib/texmf/web2c/pdftex/latex.fmt: Permission denied
kpathsea: Running mktexfmt latex.fmt
fmtutil: format directory `/var/lib/texmf/web2c' is not writable.
I can't find the format file `latex.fmt'!
$
Searching the web, I found
http://forums.opensuse.org/english/get-technical-help-here/applications/485227-problems-latex-opensuse-12-3-a.html#post2542602
and
https://forums.opensuse.org/english/get-technical-help-here/applications/484928-kile-lyx-texlive.html#post2540021
but installing texlive-collection-latexextra, texlive-collection-fontsextra and
texlive-filesystem did not help at all.
Any additional recommendations?
IMHO the update script has not been executed. Don't know why this had failed.
Nevertheless become root and do

/usr/lib/texmf/texconfig/update
Post by Marcus Meissner
Open a bugreport.
I'll close it without full description *how* this had happen. This because
I'm not able to reproduce. Using zypper or YaST2 to install texlive packages
this should not happen. Also using rpm without diabling install scripts and
respecting the dependcies had worked here.

Clearly I've used latest update of the TeXLive packages.


Werner
--
"Having a smoking section in a restaurant is like having
a peeing section in a swimming pool." -- Edward Burr
Josef Wolf
2013-07-31 10:47:22 UTC
Permalink
Thanks for your quick replies,
Post by Dr. Werner Fink
Post by Marcus Meissner
Post by Josef Wolf
$ latex labels.tex
This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012/TeX Live for SUSE Linux)
restricted \write18 enabled.
/var/lib/texmf/web2c/pdftex/latex.fmt: Permission denied
/var/lib/texmf/web2c/pdftex/latex.fmt: Permission denied
/var/lib/texmf/web2c/pdftex/latex.fmt: Permission denied
/var/lib/texmf/web2c/pdftex/latex.fmt: Permission denied
kpathsea: Running mktexfmt latex.fmt
fmtutil: format directory `/var/lib/texmf/web2c' is not writable.
I can't find the format file `latex.fmt'!
$
IMHO the update script has not been executed. Don't know why this had failed.
Nevertheless become root and do
/usr/lib/texmf/texconfig/update
Unfortunately, that did not help. Same error. Something other I could try?
Post by Dr. Werner Fink
Post by Marcus Meissner
Open a bugreport.
I'll close it without full description *how* this had happen. This because
I'm not able to reproduce. Using zypper or YaST2 to install texlive packages
this should not happen. Also using rpm without diabling install scripts and
respecting the dependcies had worked here.
I always use zypper to install anything. Never used rpm directly. Never
changed/ignored any dependencies.
--
Josef Wolf
***@raven.inka.de
--
To unsubscribe, e-mail: opensuse+***@opensuse.org
To contact the owner, e-mail: opensuse+***@opensuse.org
Dr. Werner Fink
2013-07-31 11:10:22 UTC
Permalink
Post by Josef Wolf
Thanks for your quick replies,
Post by Dr. Werner Fink
Post by Josef Wolf
$ latex labels.tex
This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012/TeX Live for SUSE Linux)
restricted \write18 enabled.
/var/lib/texmf/web2c/pdftex/latex.fmt: Permission denied
/var/lib/texmf/web2c/pdftex/latex.fmt: Permission denied
/var/lib/texmf/web2c/pdftex/latex.fmt: Permission denied
/var/lib/texmf/web2c/pdftex/latex.fmt: Permission denied
kpathsea: Running mktexfmt latex.fmt
fmtutil: format directory `/var/lib/texmf/web2c' is not writable.
I can't find the format file `latex.fmt'!
$
IMHO the update script has not been executed. Don't know why this had failed.
Nevertheless become root and do
/usr/lib/texmf/texconfig/update
Unfortunately, that did not help. Same error. Something other I could try?
Hmmm .... do as root

fmtutil-sys --missing

and report, that is if this fails please attach

/var/lib/texmf/web2c/pdftex/latex.log

then we may see on the last few lines what has gone wrong here.

Werner
--
"Having a smoking section in a restaurant is like having
a peeing section in a swimming pool." -- Edward Burr
Josef Wolf
2013-07-31 11:40:28 UTC
Permalink
Post by Dr. Werner Fink
Post by Josef Wolf
Thanks for your quick replies,
Post by Dr. Werner Fink
Post by Josef Wolf
$ latex labels.tex
This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012/TeX Live for SUSE Linux)
restricted \write18 enabled.
/var/lib/texmf/web2c/pdftex/latex.fmt: Permission denied
/var/lib/texmf/web2c/pdftex/latex.fmt: Permission denied
/var/lib/texmf/web2c/pdftex/latex.fmt: Permission denied
/var/lib/texmf/web2c/pdftex/latex.fmt: Permission denied
kpathsea: Running mktexfmt latex.fmt
fmtutil: format directory `/var/lib/texmf/web2c' is not writable.
I can't find the format file `latex.fmt'!
$
IMHO the update script has not been executed. Don't know why this had failed.
Nevertheless become root and do
/usr/lib/texmf/texconfig/update
Unfortunately, that did not help. Same error. Something other I could try?
Hmmm .... do as root
fmtutil-sys --missing
This command runs without any output.
Post by Dr. Werner Fink
and report, that is if this fails please attach
/var/lib/texmf/web2c/pdftex/latex.log
The command also don't modify this log file in any way. I'll attach it
anyway.
--
Josef Wolf
***@raven.inka.de
Dr. Werner Fink
2013-07-31 12:13:18 UTC
Permalink
Post by Josef Wolf
Post by Dr. Werner Fink
Post by Josef Wolf
Thanks for your quick replies,
Post by Dr. Werner Fink
Post by Josef Wolf
$ latex labels.tex
This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012/TeX Live for SUSE Linux)
restricted \write18 enabled.
/var/lib/texmf/web2c/pdftex/latex.fmt: Permission denied
/var/lib/texmf/web2c/pdftex/latex.fmt: Permission denied
/var/lib/texmf/web2c/pdftex/latex.fmt: Permission denied
/var/lib/texmf/web2c/pdftex/latex.fmt: Permission denied
kpathsea: Running mktexfmt latex.fmt
fmtutil: format directory `/var/lib/texmf/web2c' is not writable.
I can't find the format file `latex.fmt'!
$
IMHO the update script has not been executed. Don't know why this had failed.
Nevertheless become root and do
/usr/lib/texmf/texconfig/update
Unfortunately, that did not help. Same error. Something other I could try?
Hmmm .... do as root
fmtutil-sys --missing
This command runs without any output.
Post by Dr. Werner Fink
and report, that is if this fails please attach
/var/lib/texmf/web2c/pdftex/latex.log
The command also don't modify this log file in any way. I'll attach it
anyway.
This does mean that /var/lib/texmf/web2c/pdftex/latex.fmt exists:

d88 /suse/werner> sudo -i
d88:~ # fmtutil --missing
d88:~ # ls -l /var/lib/texmf/web2c/pdftex/latex.*
-rw-r--r-- 1 root mktex 3675805 Jul 31 13:53 /var/lib/texmf/web2c/pdftex/latex.fmt
-rw-r--r-- 1 root mktex 29660 Jul 31 13:53 /var/lib/texmf/web2c/pdftex/latex.log

otherwise you would see:

d88:~ # rm /var/lib/texmf/web2c/pdftex/latex.fmt
d88:~ # fmtutil --missing
fmtutil: running `pdftex -ini -jobname=latex -progname=latex -translate-file=cp227.tcx *latex.ini' ...
This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012/TeX Live for SUSE Linux) (INITEX)
restricted \write18 enabled.
(/usr/lib/texmf/web2c/cp227.tcx)
entering extended mode
(/usr/share/texmf/tex/latex/latexconfig/latex.ini
(/etc/texmf/tex/generic/config/pdftexconfig.tex)
(/usr/share/texmf/tex/latex/base/latex.ltx
(/usr/share/texmf/tex/lat
[...]
No pages of output.
Transcript written on latex.log.
fmtutil: /var/lib/texmf/web2c/pdftex/latex.fmt installed.
d88:~ # logout
d88 /suse/werner>

IMHO your system is broken. Please check for correct permissions and ownership
of the tree /var/lib/texmf/ and for the file /var/lib/texmf/web2c/pdftex/latex.fmt

Do you have changed /etc/texmf/web2c/mktex.cnf and/or removed the group `mktex'
from /etc/group? Or do you have removed the program /usr/lib/mktex/public
or some of the symbolic links

d88 /suse/werner> ll /usr/bin/mktex*
lrwxrwxrwx 1 root root 7 May 3 12:07 /usr/bin/mktexfmt -> fmtutil
lrwxrwxrwx 1 root root 21 May 3 12:07 /usr/bin/mktexlsr -> /usr/lib/mktex/public
lrwxrwxrwx 1 root root 21 May 3 12:07 /usr/bin/mktexmf -> /usr/lib/mktex/public
lrwxrwxrwx 1 root root 21 May 3 12:07 /usr/bin/mktexpk -> /usr/lib/mktex/public
lrwxrwxrwx 1 root root 21 May 3 12:07 /usr/bin/mktextfm -> /usr/lib/mktex/public
d88 /suse/werner> ll /usr/bin/texhash
lrwxrwxrwx 1 root root 21 May 3 12:07 /usr/bin/texhash -> /usr/lib/mktex/public

... the program /usr/lib/mktex/public is used to drop root privileges as otherwise
the tex scripts could be used to spy other users.


Werner
--
"Having a smoking section in a restaurant is like having
a peeing section in a swimming pool." -- Edward Burr
Josef Wolf
2013-07-31 12:32:12 UTC
Permalink
Post by Dr. Werner Fink
IMHO your system is broken. Please check for correct permissions and ownership
of the tree /var/lib/texmf/ and for the file /var/lib/texmf/web2c/pdftex/latex.fmt
chmod 644 /var/lib/texmf/web2c/pdftex/latex.fmt fixed the problem.
Post by Dr. Werner Fink
Do you have changed /etc/texmf/web2c/mktex.cnf and/or removed the group `mktex'
from /etc/group? Or do you have removed the program /usr/lib/mktex/public
or some of the symbolic links
Nope.

But I use a umask of 0077 for root. Guess that was the reason latex.fmt was
created with wrong permissions.

Never had any problems with umask 0077 in the last 10 years. If the file
needs to be public readable, maybe the generating script should ensure that?

Thanks for your Help!
--
Josef Wolf
***@raven.inka.de
--
To unsubscribe, e-mail: opensuse+***@opensuse.org
To contact the owner, e-mail: opensuse+***@opensuse.org
Continue reading on narkive:
Loading...