我在 openSUSE Leap 42.1 下
我安装了 TeX Live:
sudo zypper in texlive
然后我尝试安装 texlive-latex 但似乎 texlive 包是一个完整包,因为这表示 texlive-latex 已经安装。
sudo zypper in texlive-latex
我不知道它是否是一个更新或者它是基于 debian 的发行版和 SUSE 发行版之间的区别,但没有 texlive-full 或 texlive-latex-extra。
然后我安装了 Texmaker 并重新启动了计算机。
重新启动后,我启动了 Texmaker 并尝试创建和编译一个名为 maths.tex 的文档。
但是编译时出现此错误:
Process started
warning: kpathsea: /etc/texmf/ls-R: No usable entries in ls-R. warning: kpathsea: See the manual for how to generate ls-R. warning: kpathsea: /var/lib/texmf/ls-R: No usable entries in ls-R. warning: kpathsea: See the manual for how to generate ls-R. warning: kpathsea: /usr/share/texmf/ls-R: No usable entries in ls-R. warning: kpathsea: See the manual for how to generate ls-R. warning: kpathsea: /var/cache/texmf/fonts/ls-R: No usable entries in ls-R. warning: kpathsea: See the manual for how to generate ls-R.
kpathsea: Running mktexfmt pdflatex.fmt
warning: kpathsea: /etc/texmf/ls-R: No usable entries in ls-R. warning: kpathsea: See the manual for how to generate ls-R.
warning: kpathsea: /var/lib/texmf/ls-R: No usable entries in ls-R. warning: kpathsea: See the manual for how to generate ls-R. warning: kpathsea: /usr/share/texmf/ls-R: No usable entries in ls-R. warning: kpathsea: See the manual for how to generate ls-R. warning: kpathsea: /var/cache/texmf/fonts/ls-R: No usable entries in ls-R. warning: kpathsea: See the manual for how to generate ls-R.
tcfmgr: config file `tcfmgr.map' (usually in $TEXMFMAIN/texconfig) not found (ls-R missing?). fmtutil: config file `fmtutil.cnf' not found.
Process exited with error(s)
LaTeX 命令是:
latex -interaction=nonstopmode %.tex
PdfLaTeX 是:
pdflatex -synctex=1 -interaction=nonstopmode %.tex
这似乎是默认的。
之后我安装了 Kile,它安装了很多 texlive 的子包。
sudo zypper in kile
编译时我也遇到类似的错误:
*****
***** PDFLaTeXsortie:
***** cd "/home/shark/Documents"
***** pdflatex -interaction=nonstopmode D_maths.tex
*****
warning: kpathsea: /etc/texmf/ls-R: No usable entries in ls-R.
warning: kpathsea: See the manual for how to generate ls-R.
warning: kpathsea: /var/lib/texmf/ls-R: No usable entries in ls-R.
warning: kpathsea: See the manual for how to generate ls-R.
warning: kpathsea: /usr/share/texmf/ls-R: No usable entries in ls-R.
warning: kpathsea: See the manual for how to generate ls-R.
warning: kpathsea: /var/cache/texmf/fonts/ls-R: No usable entries in ls-R.
warning: kpathsea: See the manual for how to generate ls-R.
This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/TeX Live for SUSE Linux)
restricted \write18 enabled.
kpathsea: Running mktexfmt pdflatex.fmt
warning: kpathsea: /etc/texmf/ls-R: No usable entries in ls-R.
warning: kpathsea: See the manual for how to generate ls-R.
warning: kpathsea: /var/lib/texmf/ls-R: No usable entries in ls-R.
warning: kpathsea: See the manual for how to generate ls-R.
warning: kpathsea: /usr/share/texmf/ls-R: No usable entries in ls-R.
warning: kpathsea: See the manual for how to generate ls-R.
warning: kpathsea: /var/cache/texmf/fonts/ls-R: No usable entries in ls-R.
warning: kpathsea: See the manual for how to generate ls-R.
tcfmgr: config file `tcfmgr.map' (usually in $TEXMFMAIN/texconfig) not found (ls-R missing?).
fmtutil: config file `fmtutil.cnf' not found.
I can't find the format file `pdflatex.fmt'!
我的“/etc/texmf/ls-R”包含:
% ls-R -- filename database for kpathsea; do not change this line.
./:
附加信息
特科利
Informations sur package texlive :
----------------------------------
Dépôt : openSUSE-leap/42.1-Oss
Nom : texlive
Version : 2013.20130620-24.7
Arch : x86_64
Fabricant : openSUSE
Installé : Oui
État : A jour
Taille une fois installé : 124,3 KiB
纺织机械
Informations sur package texmaker :
-----------------------------------
Dépôt : openSUSE-leap/42.1-Oss
Nom : texmaker
Version : 4.4.1-2.3
Arch : x86_64
Fabricant : openSUSE
Installé : Oui
État : A jour
Taille une fois installé : 33,6 MiB
texlive-latex
Informations sur package texlive-latex :
----------------------------------------
Dépôt : openSUSE-leap/42.1-Oss
Nom : texlive-latex
Version : 2013.84.svn27907-17.5
Arch : noarch
Fabricant : openSUSE
Installé : Oui
État : A jour
Taille une fois installé : 1,1 MiB
基勒
Informations sur package kile :
-------------------------------
Dépôt : openSUSE-leap/42.1-Oss
Nom : kile
Version : 2.1.3-8.7
Arch : x86_64
Fabricant : openSUSE
Installé : Oui
État : A jour
Taille une fois installé : 5,6 MiB
答案1
最后,我从官方网站安装了 TeXLive:通过互联网安装 TeX Live 我跟着TeX Live - 快速安装文档。
我认为这也应该适用于 ditros 包。
实际上我只需要在 Texmaker 参数中为 LaTeX 和 pdfLaTeX 以及其他路径设置路径……
因此我的安装箱就在里面/usr/local/texlive/2015/bin/x86_64-linux
。
最好不要忘记修改 $PATH 环境变量。通过添加:
PATH=/usr/local/texlive/2015/bin/x86_64-linux:$PATH; export PATH
在我的 bash.rc 配置文件中
答案2
texlive
升级主系统后也出现同样的问题openSUSE Leap-15.3
版本(2017 版)升级为 2021 版后,也出版:TeXLive:
warning: kpathsea: /var/lib/texmf/ls-R: No usable entries in ls-R.
解决
sudo /usr/share/texmf/texconfig/update