You are not logged in.
Dear Archers,
Whenever I run tex and pflatex, they bail out with:
kpathsea: Running mktexfmt tex.fmt
tcfmgr: config file `tcfmgr.map' (usually in $TEXMFMAIN/texconfig) not found (ls-R missing?).
fmtutil: config file `fmtutil.cnf' not found.
For pdflatex, a sample file:
\documentclass{article}
\begin{document}
Hello world
\end{document}
For TeX, a sample file:
Hello world
\bye
Both produce the same results, give or take a header about versioning. I haven't had to (La)TeX anything for a while so I don't know when this behaviour started.
I tried googling the errors at various levels of granularity. Nothing.
I checked whether any texlive packages have been updated lately. They have not. I reinstalled texlive-bin and texlive-core anyway. The problem remained. I look for the files,
$ pacman -Qql texlive-bin | grep "tcfmgr\.map\|fmtutil\.cnf\|pdflatex\.fmt"
/etc/texmf/web2c/fmtutil.cnf
/usr/share/man/man5/fmtutil.cnf.5.gz
/usr/share/texmf/texconfig/tcfmgr.map
/usr/share/texmf/web2c/fmtutil.cnf
Clearly, the files exist on the system. Supposing it's a kpathsea problem, I used "pacman -Qs kpathsea" to determine that kpathsea is provided by texlive-bin.
I grepped for texlive in my pacman log and see about a week ago (and nothing since except the texlive reinstall),
[2012-05-17 17:23] Running 'pacman -Syu asymptote'
[2012-05-17 17:23] synchronizing package lists
[2012-05-17 17:23] starting full system upgrade
[2012-05-17 17:24] >>> updating the filename database for texlive...
[2012-05-17 17:24] installed asymptote (2.15-2)
So I uninstall asymptote, and yet still the problem remains.
The tex manpage says to use kpsewhich to deal with filename path problems:
The location of the files mentioned below varies from system to system. Use the kpsewhich utility to find their locations.
Dutifully, I rtfm, but it is just too concise. Googling and playing around with a few options didn't give any love.
I would really appreciate any insights anyone can provide into what I think is very strange problem?
Last edited by /dev/zero (2012-05-26 05:19:40)
Offline
It works fine for me, with texlive-bin 2011.3-6
Intel(R) Celeron(R) CPU E3400 @ 2.60GHz, x86_64. AURs.
“No one without the knowledge of geometry may enter.“ Plato.
Offline
Would a simple
$ sudo texhash
do the trick?
Offline
Have you tried
# mktexmf --all
# mktexlsr
$ mktexmf --all
$ mktexlsr
This is sort of a wild shot in the dark (texhash is the same as mktexlsr, I just discovered)
Scott
Offline
You can also try:
fmtutil --all
export TEXINPUTS=$TEXINPUTS:/usr/share/texmf pdflatex file.tex
though I must say, I don't understand very much about tex.
6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.
Offline
Thanks for the suggestions. I tried them all out. I still get the same error. I also tried removing the existing `ls-R' file from /etc/texmf before regenerating it with texhash. A diff of the two files shows no difference. The file has the following contents:
% ls-R -- filename database for kpathsea; do not change this line.
./:
.:
chktex
dvipdfm
dvipdfmx
dvips
ls-R
tex
ttf2pk
web2c
xdvi
./chktex:
chktexrc
./dvipdfm:
config
./dvipdfm/config:
config
./dvipdfmx:
dvipdfmx.cfg
./dvips:
config
./dvips/config:
config.ps
./tex:
generic
./tex/generic:
config
./tex/generic/config:
language.dat
language.def
pdftexconfig.tex
./ttf2pk:
ttf2pk.cfg
./web2c:
fmtutil.cnf
mktex.cnf
texmf.cnf
updmap.cfg
./xdvi:
XDvi
Edit: the above paste comes from /etc/texmf/ls-R. There exists another ls-R in /usr/share/texmf. It has much more content that I pastebinned here.
Last edited by /dev/zero (2012-05-24 20:34:33)
Offline
Try running:
sudo texconfig rehash
Edit: no -- should be there...
Last edited by bohoomil (2012-05-24 20:40:17)
:: Registered Linux User No. 223384
:: github
:: infinality-bundle+fonts: good looking fonts made easy
Offline
Try running:
sudo texconfig rehash
Sorry, no luck. I think it is only a wrapper to texhash/mktexlsr,
$ man texconfig | grep rehash
rehash Call mktexlsr.
Offline
I don't see this mentioned, but as a way to 'partition' the problem a bit to narrow down where the problem might be, do you get the same result?
$ kpsewhich fmtutil.cnf
/etc/texmf/web2c/fmtutil.cnf
Edit: this could narrow down whether the failure is "upstream" of the call to kpsewhich, or "downstream". I'm not sure what else is swimming in that stream yet, but this should narrow the search.
Last edited by Trilby (2012-05-24 20:56:07)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
You may examine your configuration details (i.e. kpathsea variables) if you run 'sudo texconfig'. If nothing helps, try this. It doesn't repair anything automagically, but lets you see what's happening under the hood.
:: Registered Linux User No. 223384
:: github
:: infinality-bundle+fonts: good looking fonts made easy
Offline
I don't see this mentioned, but as a way to 'partition' the problem a bit to narrow down where the problem might be, do you get the same result?
$ kpsewhich fmtutil.cnf /etc/texmf/web2c/fmtutil.cnf
Edit: this could narrow down whether the failure is "upstream" of the call to kpsewhich, or "downstream". I'm not sure what else is swimming in that stream yet, but this should narrow the search.
Looks like it's upstream. No results from kpsewhich:
$ kpsewhich fmtutil.cnf
$ kpsewhich tcfmgr.map
$
I tried an strace but don't see anything
strace kpsewhich fmtutil.cnf 2>&1 | sed "s|$(whoami)|whoami|g"
Offline
You may examine your configuration details (i.e. kpathsea variables) if you run 'sudo texconfig'. If nothing helps, try this. It doesn't repair anything automagically, but lets you see what's happening under the hood.
Thanks, I thought this was a neat trick and looked in the manpage, and found that you can use texconfig to display the configuration:
$ for cmd in texconfig{,-sys}; do man $cmd | grep "^[[:space:]]\+conf"; done | uniq
conf Display the system configuration.
And so:
$ for cmd in texconfig{,-sys}; do $cmd conf; printf '\n-------------------------------\n\n'; done | sed "s|$(whoami)|whoami|g"
=========================== version information ==========================
==================== binaries found by searching $PATH ===================
PATH=.:/home/whoami/sbin:/home/whoami/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin/vendor_perl:/usr/bin/core_perl
kpsewhich: /usr/bin/kpsewhich
updmap: /usr/bin/updmap
fmtutil: /usr/bin/fmtutil
texconfig: /usr/bin/texconfig
tex: /usr/bin/tex
pdftex: /usr/bin/pdftex
mktexpk: /usr/bin/mktexpk
dvips: /usr/bin/dvips
dvipdfm: /usr/bin/dvipdfm
=========================== active config files ==========================
tcfmgr: config file `tcfmgr.map' (usually in $TEXMFMAIN/texconfig) not found (ls-R missing?).
tcfmgr: config file `tcfmgr.map' (usually in $TEXMFMAIN/texconfig) not found (ls-R missing?).
tcfmgr: config file `tcfmgr.map' (usually in $TEXMFMAIN/texconfig) not found (ls-R missing?).
tcfmgr: config file `tcfmgr.map' (usually in $TEXMFMAIN/texconfig) not found (ls-R missing?).
tcfmgr: config file `tcfmgr.map' (usually in $TEXMFMAIN/texconfig) not found (ls-R missing?).
tcfmgr: config file `tcfmgr.map' (usually in $TEXMFMAIN/texconfig) not found (ls-R missing?).
tcfmgr: config file `tcfmgr.map' (usually in $TEXMFMAIN/texconfig) not found (ls-R missing?).
/usr/share/texmf/web2c/texmf.cnf
config: not found
config.ps: not found
fmtutil.cnf: not found
mktex.cnf: not found
pdftexconfig.tex: not found
updmap.cfg: not found
XDvi: not found
============================= font map files =============================
psfonts.map:
pdftex.map:
ps2pk.map:
dvipdfm.map:
=========================== kpathsea variables ===========================
TEXMFMAIN=/usr/share/texmf
TEXMFDIST=/usr/share/texmf-dist
TEXMFLOCAL=/usr/local/share/texmf
TEXMFSYSVAR=/var/lib/texmf
TEXMFSYSCONFIG=/etc/texmf
TEXMFVAR=/home/whoami/.texlive/texmf-var
TEXMFCONFIG=/home/whoami/.texlive/texmf-config
TEXMFHOME=/home/whoami/texmf
VARTEXFONTS=/home/whoami/.texlive/texmf-var/fonts
TEXMF=/home/whoami/texmf/tex/latex
SYSTEXMF=/var/lib/texmf:/usr/share/texmf:/usr/local/share/texmf:/usr/share/texmf-dist
TEXMFDBS={!!/etc/texmf,!!/var/lib/texmf,!!/usr/share/texmf,!!/usr/local/share/texmf,!!/usr/share/texmf-dist}
WEB2C=/home/whoami/texmf/tex/latex/web2c
TEXPSHEADERS=.:/home/whoami/texmf/tex/latex/{dvips,fonts/{enc,type1,type42,type3}}//
TEXCONFIG=/home/whoami/texmf/tex/latex/dvips//
ENCFONTS=.:/home/whoami/texmf/tex/latex/fonts/enc//
TEXFONTMAPS=.:/home/whoami/texmf/tex/latex/fonts/map/{kpsewhich,pdftex,dvips,}//
==== kpathsea variables from environment only (ok if no output here) ====
-------------------------------
=========================== version information ==========================
==================== binaries found by searching $PATH ===================
PATH=.:/home/whoami/sbin:/home/whoami/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin/vendor_perl:/usr/bin/core_perl
kpsewhich: /usr/bin/kpsewhich
updmap: /usr/bin/updmap
fmtutil: /usr/bin/fmtutil
texconfig: /usr/bin/texconfig
tex: /usr/bin/tex
pdftex: /usr/bin/pdftex
mktexpk: /usr/bin/mktexpk
dvips: /usr/bin/dvips
dvipdfm: /usr/bin/dvipdfm
=========================== active config files ==========================
tcfmgr: config file `tcfmgr.map' (usually in $TEXMFMAIN/texconfig) not found (ls-R missing?).
tcfmgr: config file `tcfmgr.map' (usually in $TEXMFMAIN/texconfig) not found (ls-R missing?).
tcfmgr: config file `tcfmgr.map' (usually in $TEXMFMAIN/texconfig) not found (ls-R missing?).
tcfmgr: config file `tcfmgr.map' (usually in $TEXMFMAIN/texconfig) not found (ls-R missing?).
tcfmgr: config file `tcfmgr.map' (usually in $TEXMFMAIN/texconfig) not found (ls-R missing?).
tcfmgr: config file `tcfmgr.map' (usually in $TEXMFMAIN/texconfig) not found (ls-R missing?).
tcfmgr: config file `tcfmgr.map' (usually in $TEXMFMAIN/texconfig) not found (ls-R missing?).
/usr/share/texmf/web2c/texmf.cnf
config: not found
config.ps: not found
fmtutil.cnf: not found
mktex.cnf: not found
pdftexconfig.tex: not found
updmap.cfg: not found
XDvi: not found
============================= font map files =============================
psfonts.map:
pdftex.map:
ps2pk.map:
dvipdfm.map:
=========================== kpathsea variables ===========================
TEXMFMAIN=/usr/share/texmf
TEXMFDIST=/usr/share/texmf-dist
TEXMFLOCAL=/usr/local/share/texmf
TEXMFSYSVAR=/var/lib/texmf
TEXMFSYSCONFIG=/etc/texmf
TEXMFVAR=/var/lib/texmf
TEXMFCONFIG=/etc/texmf
TEXMFHOME=/home/whoami/texmf
VARTEXFONTS=/var/lib/texmf/fonts
TEXMF=/home/whoami/texmf/tex/latex
SYSTEXMF=/var/lib/texmf:/usr/share/texmf:/usr/local/share/texmf:/usr/share/texmf-dist
TEXMFDBS={!!/etc/texmf,!!/var/lib/texmf,!!/usr/share/texmf,!!/usr/local/share/texmf,!!/usr/share/texmf-dist}
WEB2C=/home/whoami/texmf/tex/latex/web2c
TEXPSHEADERS=.:/home/whoami/texmf/tex/latex/{dvips,fonts/{enc,type1,type42,type3}}//
TEXCONFIG=/home/whoami/texmf/tex/latex/dvips//
ENCFONTS=.:/home/whoami/texmf/tex/latex/fonts/enc//
TEXFONTMAPS=.:/home/whoami/texmf/tex/latex/fonts/map/{kpsewhich,pdftex,dvips,}//
==== kpathsea variables from environment only (ok if no output here) ====
-------------------------------
Edit: using the above information, I double-check,
$ ls /usr/share/texmf/texconfig/
g README tcfmgr tcfmgr.map v x
Truly tcfmgr.map is in $TEXMFMAIN/texconfig as expected (but not found).
Last edited by /dev/zero (2012-05-24 22:35:47)
Offline
For comparison, all your variables starting at TEXMF are much shorter than mine:
TEXMF={/home/whoami/.texlive/texmf-config,/home/whoami/.texlive/texmf-var,/home/whoami/texmf,!!/etc/texmf,!!/var/lib/texmf,!!/usr/share/texmf,!!/usr/local/share/texmf,!!/usr/share/texmf-dist}
SYSTEXMF=/var/lib/texmf:/usr/share/texmf:/usr/local/share/texmf:/usr/share/texmf-dist
TEXMFDBS={!!/etc/texmf,!!/var/lib/texmf,!!/usr/share/texmf,!!/usr/local/share/texmf,!!/usr/share/texmf-dist}
WEB2C={/home/whoami/.texlive/texmf-config,/home/whoami/.texlive/texmf-var,/home/whoami/texmf,!!/etc/texmf,!!/var/lib/texmf,!!/usr/share/texmf,!!/usr/local/share/texmf,!!/usr/share/texmf-dist}/web2c
TEXPSHEADERS=.:{/home/whoami/.texlive/texmf-config,/home/whoami/.texlive/texmf-var,/home/whoami/texmf,!!/etc/texmf,!!/var/lib/texmf,!!/usr/share/texmf,!!/usr/local/share/texmf,!!/usr/share/texmf-dist}/{dvips,fonts/{enc,type1,type42,type3}}//
TEXCONFIG={/home/whoami/.texlive/texmf-config,/home/whoami/.texlive/texmf-var,/home/whoami/texmf,!!/etc/texmf,!!/var/lib/texmf,!!/usr/share/texmf,!!/usr/local/share/texmf,!!/usr/share/texmf-dist}/dvips//
ENCFONTS=.:{/home/whoami/.texlive/texmf-config,/home/whoami/.texlive/texmf-var,/home/whoami/texmf,!!/etc/texmf,!!/var/lib/texmf,!!/usr/share/texmf,!!/usr/local/share/texmf,!!/usr/share/texmf-dist}/fonts/enc//
TEXFONTMAPS=.:{/home/whoami/.texlive/texmf-config,/home/whoami/.texlive/texmf-var,/home/whoami/texmf,!!/etc/texmf,!!/var/lib/texmf,!!/usr/share/texmf,!!/usr/local/share/texmf,!!/usr/share/texmf-dist}/fonts/map/{kpsewhich,pdftex,dvips,}//
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
For comparison, all your variables starting at TEXMF are much shorter than mine:
... <snip> ...
I see a lot of your paths include references to ~/{.texlive,texmf}. For some reason, my copies of these directories have nothing in them:
$ find $HOME/{texmf,.texlive} -type f
$
Whereas my root user does have stuff under /root/.texlive:
$ sudo find /root/{texmf,.texlive} -type f | head
find: `/root/texmf': No such file or directory
/root/.texlive/texmf-var/web2c/pdftex/mllatex.fmt
/root/.texlive/texmf-var/web2c/pdftex/amstex.log
/root/.texlive/texmf-var/web2c/pdftex/pdflatex.log
/root/.texlive/texmf-var/web2c/pdftex/utf8mex.fmt
/root/.texlive/texmf-var/web2c/pdftex/pdfcsplain.fmt
/root/.texlive/texmf-var/web2c/pdftex/mptopdf.log
/root/.texlive/texmf-var/web2c/pdftex/mllatex.log
/root/.texlive/texmf-var/web2c/pdftex/latex.fmt
/root/.texlive/texmf-var/web2c/pdftex/pdfcsplain.log
/root/.texlive/texmf-var/web2c/pdftex/amstex.fmt
So, I try
$ sudo tex hello.tex
Password:
This is TeX, Version 3.1415926 (TeX Live 2012/dev/Arch Linux)
(./hello.tex [1] )
Output written on hello.dvi (1 page, 224 bytes).
Transcript written on hello.log.
This is promising.
However, when I copy the files from root's .texlive to my normal user's, I still get the same failures.
Edit: also still failing after I again run "mktexmf --all" and "sudo texhash"
But it looks like there is hope!
Last edited by /dev/zero (2012-05-24 23:44:57)
Offline
I don't seem to have much in the ~/.texlive folder*. There are a couple files, but none that seem relevant to your errors.
Another difference, though, is that you variables (TEXMF for example) lacks all the dirs starting with !!. I'm not sure what the double-bang means in this context, but what follows it are the paths to the files that your tex is reporting not finding.
*note: actually it is an empty directory tree. Under .texlive there is texmf-config which is empty, and texmf-var. Under texmf-var there are dirs fonts>unknown>unknown, all empty except for the single subdirectory.
Last edited by Trilby (2012-05-24 23:59:26)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Remove ~/.texlive2011 (or whatever the equivalent is on your system). For safety, move it rather than deleting it but removing it shouldn't do any harm.
If ~/texmf exists, rename it temporarily. (Don't delete this one.)
It's the kpathsea variables which are wrong as Trilby said.
I think the !! means that the directory is not to be searched directly but via the ls-R files. For your personal hierarchy, it literally looks through the file system. For the system hierarchies, it just uses the ls-R files to find stuff.
I'm not sure quite what the set up is from the Arch package. Could somebody else post the full output of texconfig(-sys) conf?
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
This is from a pretty standard install of the texlive-most group:
$ for cmd in texconfig{,-sys}; do $cmd conf; printf '\n-------------------------------\n\n'; done | sed "s|$(whoami)|whoami|g"
=========================== version information ==========================
==================== binaries found by searching $PATH ===================
PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin/core_perl:/home/whoami/ARX/bin
kpsewhich: /usr/bin/kpsewhich
updmap: /usr/bin/updmap
fmtutil: /usr/bin/fmtutil
texconfig: /usr/bin/texconfig
tex: /usr/bin/tex
pdftex: /usr/bin/pdftex
mktexpk: /usr/bin/mktexpk
dvips: /usr/bin/dvips
dvipdfm: /usr/bin/dvipdfm
=========================== active config files ==========================
/etc/texmf/dvipdfm/config/config
/etc/texmf/dvips/config/config.ps
/etc/texmf/tex/generic/config/pdftexconfig.tex
/etc/texmf/web2c/fmtutil.cnf
/etc/texmf/web2c/mktex.cnf
/etc/texmf/web2c/updmap.cfg
/etc/texmf/xdvi/XDvi
/usr/share/texmf/web2c/texmf.cnf
============================= font map files =============================
psfonts.map: /var/lib/texmf/fonts/map/dvips/updmap/psfonts.map
pdftex.map: /var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map
ps2pk.map: /var/lib/texmf/fonts/map/dvips/updmap/ps2pk.map
dvipdfm.map:
=========================== kpathsea variables ===========================
TEXMFMAIN=/usr/share/texmf
TEXMFDIST=/usr/share/texmf-dist
TEXMFLOCAL=/usr/local/share/texmf
TEXMFSYSVAR=/var/lib/texmf
TEXMFSYSCONFIG=/etc/texmf
TEXMFVAR=/home/whoami/.texlive/texmf-var
TEXMFCONFIG=/home/whoami/.texlive/texmf-config
TEXMFHOME=/home/whoami/texmf
VARTEXFONTS=/home/whoami/.texlive/texmf-var/fonts
TEXMF={/home/whoami/.texlive/texmf-config,/home/whoami/.texlive/texmf-var,/home/whoami/texmf,!!/etc/texmf,!!/var/lib/texmf,!!/usr/share/texmf,!!/usr/local/share/texmf,!!/usr/share/texmf-dist}
SYSTEXMF=/var/lib/texmf:/usr/share/texmf:/usr/local/share/texmf:/usr/share/texmf-dist
TEXMFDBS={!!/etc/texmf,!!/var/lib/texmf,!!/usr/share/texmf,!!/usr/local/share/texmf,!!/usr/share/texmf-dist}
WEB2C={/home/whoami/.texlive/texmf-config,/home/whoami/.texlive/texmf-var,/home/whoami/texmf,!!/etc/texmf,!!/var/lib/texmf,!!/usr/share/texmf,!!/usr/local/share/texmf,!!/usr/share/texmf-dist}/web2c
TEXPSHEADERS=.:{/home/whoami/.texlive/texmf-config,/home/whoami/.texlive/texmf-var,/home/whoami/texmf,!!/etc/texmf,!!/var/lib/texmf,!!/usr/share/texmf,!!/usr/local/share/texmf,!!/usr/share/texmf-dist}/{dvips,fonts/{enc,type1,type42,type3}}//
TEXCONFIG={/home/whoami/.texlive/texmf-config,/home/whoami/.texlive/texmf-var,/home/whoami/texmf,!!/etc/texmf,!!/var/lib/texmf,!!/usr/share/texmf,!!/usr/local/share/texmf,!!/usr/share/texmf-dist}/dvips//
ENCFONTS=.:{/home/whoami/.texlive/texmf-config,/home/whoami/.texlive/texmf-var,/home/whoami/texmf,!!/etc/texmf,!!/var/lib/texmf,!!/usr/share/texmf,!!/usr/local/share/texmf,!!/usr/share/texmf-dist}/fonts/enc//
TEXFONTMAPS=.:{/home/whoami/.texlive/texmf-config,/home/whoami/.texlive/texmf-var,/home/whoami/texmf,!!/etc/texmf,!!/var/lib/texmf,!!/usr/share/texmf,!!/usr/local/share/texmf,!!/usr/share/texmf-dist}/fonts/map/{kpsewhich,pdftex,dvips,}//
==== kpathsea variables from environment only (ok if no output here) ====
-------------------------------
=========================== version information ==========================
==================== binaries found by searching $PATH ===================
PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin/core_perl:/home/whoami/ARX/bin
kpsewhich: /usr/bin/kpsewhich
updmap: /usr/bin/updmap
fmtutil: /usr/bin/fmtutil
texconfig: /usr/bin/texconfig
tex: /usr/bin/tex
pdftex: /usr/bin/pdftex
mktexpk: /usr/bin/mktexpk
dvips: /usr/bin/dvips
dvipdfm: /usr/bin/dvipdfm
=========================== active config files ==========================
/etc/texmf/dvipdfm/config/config
/etc/texmf/dvips/config/config.ps
/etc/texmf/tex/generic/config/pdftexconfig.tex
/etc/texmf/web2c/fmtutil.cnf
/etc/texmf/web2c/mktex.cnf
/etc/texmf/web2c/updmap.cfg
/etc/texmf/xdvi/XDvi
/usr/share/texmf/web2c/texmf.cnf
============================= font map files =============================
psfonts.map: /var/lib/texmf/fonts/map/dvips/updmap/psfonts.map
pdftex.map: /var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map
ps2pk.map: /var/lib/texmf/fonts/map/dvips/updmap/ps2pk.map
dvipdfm.map:
=========================== kpathsea variables ===========================
TEXMFMAIN=/usr/share/texmf
TEXMFDIST=/usr/share/texmf-dist
TEXMFLOCAL=/usr/local/share/texmf
TEXMFSYSVAR=/var/lib/texmf
TEXMFSYSCONFIG=/etc/texmf
TEXMFVAR=/var/lib/texmf
TEXMFCONFIG=/etc/texmf
TEXMFHOME=/home/whoami/texmf
VARTEXFONTS=/var/lib/texmf/fonts
TEXMF={/etc/texmf,/var/lib/texmf,/home/whoami/texmf,!!/etc/texmf,!!/var/lib/texmf,!!/usr/share/texmf,!!/usr/local/share/texmf,!!/usr/share/texmf-dist}
SYSTEXMF=/var/lib/texmf:/usr/share/texmf:/usr/local/share/texmf:/usr/share/texmf-dist
TEXMFDBS={!!/etc/texmf,!!/var/lib/texmf,!!/usr/share/texmf,!!/usr/local/share/texmf,!!/usr/share/texmf-dist}
WEB2C={/etc/texmf,/var/lib/texmf,/home/whoami/texmf,!!/etc/texmf,!!/var/lib/texmf,!!/usr/share/texmf,!!/usr/local/share/texmf,!!/usr/share/texmf-dist}/web2c
TEXPSHEADERS=.:{/etc/texmf,/var/lib/texmf,/home/whoami/texmf,!!/etc/texmf,!!/var/lib/texmf,!!/usr/share/texmf,!!/usr/local/share/texmf,!!/usr/share/texmf-dist}/{dvips,fonts/{enc,type1,type42,type3}}//
TEXCONFIG={/etc/texmf,/var/lib/texmf,/home/whoami/texmf,!!/etc/texmf,!!/var/lib/texmf,!!/usr/share/texmf,!!/usr/local/share/texmf,!!/usr/share/texmf-dist}/dvips//
ENCFONTS=.:{/etc/texmf,/var/lib/texmf,/home/whoami/texmf,!!/etc/texmf,!!/var/lib/texmf,!!/usr/share/texmf,!!/usr/local/share/texmf,!!/usr/share/texmf-dist}/fonts/enc//
TEXFONTMAPS=.:{/etc/texmf,/var/lib/texmf,/home/whoami/texmf,!!/etc/texmf,!!/var/lib/texmf,!!/usr/share/texmf,!!/usr/local/share/texmf,!!/usr/share/texmf-dist}/fonts/map/{kpsewhich,pdftex,dvips,}//
==== kpathsea variables from environment only (ok if no output here) ====
-------------------------------
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Thanks. So /usr/share/texmf/web2c/texmf.cnf is the only config file it is finding but that is at least one of the config files it should be using. What's the content of this file? I think this should be setting up the search paths correctly which are incomplete on your system.
Do you have any other texmf.cnf anywhere? For example, if you just run locate texmf.cnf do you get any other hits? Particularly under /etc/texmf or /usr/share/texmf? I don't think this is likely to be the issue because it isn't showing up anything active but it is possible to use a file to override the version under /usr/share/texmf/web2c so it would be good to double-check that's not happening.
You can get more information about where and how kpsewhich is searching for files of a particular type using something like
kpsewhich --show-path cnf
kpsewhich --show-path fmt
etc. Although I think that is just going to re-demonstrate the issue in this case rather than necessarily providing more information.
Last edited by cfr (2012-05-25 01:37:50)
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
Were you asking /d/z or me? My tex is working properly just in case it wasn't clear.
On my system /usr/share/texmf/web2c/texmf.cnf is quite a large file (724 lines) that does seem to be setting many paths. The two kpsewhich commands each output a lengthy list of paths that look the same as the list in the output of the texconfig above.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Thanks. So /usr/share/texmf/web2c/texmf.cnf is the only config file it is finding but that is at least one of the config files it should be using. What's the content of this file? I think this should be setting up the search paths correctly which are incomplete on your system.
It's the same as the Arch Linux default:
$ diff /usr/share/texmf/web2c/texmf.cnf <(wget -q http://projects.archlinux.org/svntogit/packages.git/plain/trunk/texmf.cnf?h=packages/texlive-bin -O-)
378c378
< %
---
> %
417c417
< %
---
> %
422c422
< %
---
> %
Do you have any other texmf.cnf anywhere? For example, if you just run locate texmf.cnf do you get any other hits? Particularly under /etc/texmf or /usr/share/texmf? I don't think this is likely to be the issue because it isn't showing up anything active but it is possible to use a file to override the version under /usr/share/texmf/web2c so it would be good to double-check that's not happening.
$ locate texmf.cnf
/etc/texmf/web2c/texmf.cnf
/usr/share/texmf/web2c/texmf.cnf
/var/abs/extra/texlive-bin/texmf.cnf
However, I don't see how the two copies could conflict with each other, since:
$ diff /etc/texmf/web2c/texmf.cnf <(wget -q http://projects.archlinux.org/svntogit/packages.git/plain/trunk/texmf.cnf?h=packages/texlive-bin -O-)
378c378
< %
---
> %
417c417
< %
---
> %
422c422
< %
---
> %
IOW, both files are the same and they are both the same as the Arch Linux default.
You can get more information about where and how kpsewhich is searching for files of a particular type using something like
kpsewhich --show-path cnf kpsewhich --show-path fmt
... gives:
.:/home/whoami/texmf/tex/latex/web2c/unsetengine:/home/whoami/texmf/tex/latex/web2c
Offline
This is from a pretty standard install of the texlive-most group:
... <snip> ...
Thanks for the comparison. This is so weird. I semi-regularly use LaTeX, I think as recently as a couple of weeks ago, and it was fine.
You know, when I prefix "texconfig conf" with "sudo", it gives all the extra paths that you have.
So I guess the question becomes, how do I make my non-root config look like my root config?
I just tried googling for this, and now find the TeX-Live page on the wiki (oops, didn't check that before ), but still don't see anything useful. I also find the TeX FAQ; it has a lot of entries but nothing stands out as relevant.
Offline
You know, when I prefix "texconfig conf" with "sudo", it gives all the extra paths that you have.
So I guess the question becomes, how do I make my non-root config look like my root config?
For what it's worth, check permissions on $HOME/.texlive directory. My has a sticky bit (also on all sub-directories):
drwxr-x--T 3 bohoomil users 4,096 Feb 16 08:24 .texlive/
Last edited by bohoomil (2012-05-25 03:42:11)
:: Registered Linux User No. 223384
:: github
:: infinality-bundle+fonts: good looking fonts made easy
Offline
Thanks all for trying to help! It feels like we're hitting the bottom of the barrel, garrgh.
For what it's worth, check permissions on $HOME/.texlive directory. My has a sticky bit (also on all sub-directories):
drwxr-x--T 3 bohoomil users 4,096 Feb 16 08:24 .texlive/
It didn't, but I changed it so it does, recursively, along with group readability to all subdirectories and files. Again, same errors.
Offline
Were you asking /d/z or me? My tex is working properly just in case it wasn't clear.
On my system /usr/share/texmf/web2c/texmf.cnf is quite a large file (724 lines) that does seem to be setting many paths. The two kpsewhich commands each output a lengthy list of paths that look the same as the list in the output of the texconfig above.
Sorry. The "thanks" was aimed at you but the rest was aimed at /d/z. I should have made that clearer. I thought it worth checking whether the basic .cnf files had got corrupted or overridden by local copies somehow. Your output told me what config files it should be using. Looks like /d/z's output is showing that there's nothing wrong with those files. They are just getting overridden somehow.
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
/d/z:
Did you try removing ~/.texlive and renaming ~/texmf, if appropriate?
Does printenv | grep TEX show anything interesting?
Does the problem occur if you login as another unprivileged user?
Last edited by cfr (2012-05-25 17:11:00)
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline