![使用 texstudio 设置 texlive 时出错](https://linux22.com/image/473600/%E4%BD%BF%E7%94%A8%20texstudio%20%E8%AE%BE%E7%BD%AE%20texlive%20%E6%97%B6%E5%87%BA%E9%94%99.png)
我确定没有现有的texlive/latex我的系统上存在安装,并且我安装了特科利按照此处的说明手动使用安装脚本: https://tug.org/texlive/quickinstall.html
/usr/local/texlive/2023/
现在我的系统上有这个文件夹。
我附加export PATH=/usr/local/texlive/2023/bin/x86_64-linux:/usr/local/texlive/2023/bin:$PATH
到~/.bashrc
我尝试在 Texstudio 中编译一个极简的 tex 文件。我将路径添加/usr/local/texlive/2023/bin/x86_64-linux:/usr/local/texlive/2023/bin
到$PATH
字段(设置 -> 构建)。但我收到错误:
Process started: lualatex -synctex=1 -interaction=nonstopmode "basic sample".tex
warning: kpathsea: configuration file texmf.cnf not found in these directories: /usr/bin:/usr/bin/share/texmf-local/web2c:/usr/bin/share/texmf-dist/web2c:/usr/bin/share/texmf/web2c:/usr/bin/texmf-local/web2c:/usr/bin/texmf-dist/web2c:/usr/bin/texmf/web2c:/usr:/usr/share/texmf-local/web2c:/usr/share/texmf-dist/web2c:/usr/share/texmf/web2c:/usr/texmf-local/web2c:/usr/texmf-dist/web2c:/usr/texmf/web2c://texmf-local/web2c:/://share/texmf-local/web2c://share/texmf-dist/web2c://share/texmf/web2c://texmf-local/web2c://texmf-dist/web2c://texmf/web2c.
kpathsea: Running mktexfmt lualatex.fmt
warning: kpathsea: configuration file texmf.cnf not found in these directories: /usr/bin:/usr/bin/share/texmf-local/web2c:/usr/bin/share/texmf-dist/web2c:/usr/bin/share/texmf/web2c:/usr/bin/texmf-local/web2c:/usr/bin/texmf-dist/web2c:/usr/bin/texmf/web2c:/usr:/usr/share/texmf-local/web2c:/usr/share/texmf-dist/web2c:/usr/share/texmf/web2c:/usr/texmf-local/web2c:/usr/texmf-dist/web2c:/usr/texmf/web2c://texmf-local/web2c:/://share/texmf-local/web2c://share/texmf-dist/web2c://share/texmf/web2c://texmf-local/web2c://texmf-dist/web2c://texmf/web2c.
/usr/local/texlive/2023/bin/x86_64-linux/mktexfmt: kpsewhich -var-value=TEXMFROOT failed, aborting early. BEGIN failed--compilation aborted at /usr/local/texlive/2023/bin/x86_64-linux/mktexfmt line 25.
Process exited with error(s)
Process started: makeindex "basic sample".idx
Input index file basic sample.idx not found. Usage: makeindex [-ilqrcgLT] [-s sty] [-o ind] [-t log] [-p num] [idx0 idx1 ...]
Process exited with error(s)
Process started: lualatex -synctex=1 -interaction=nonstopmode "basic sample".tex
warning: kpathsea: configuration file texmf.cnf not found in these directories: /usr/bin:/usr/bin/share/texmf-local/web2c:/usr/bin/share/texmf-dist/web2c:/usr/bin/share/texmf/web2c:/usr/bin/texmf-local/web2c:/usr/bin/texmf-dist/web2c:/usr/bin/texmf/web2c:/usr:/usr/share/texmf-local/web2c:/usr/share/texmf-dist/web2c:/usr/share/texmf/web2c:/usr/texmf-local/web2c:/usr/texmf-dist/web2c:/usr/texmf/web2c://texmf-local/web2c:/://share/texmf-local/web2c://share/texmf-dist/web2c://share/texmf/web2c://texmf-local/web2c://texmf-dist/web2c://texmf/web2c.
kpathsea: Running mktexfmt lualatex.fmt
warning: kpathsea: configuration file texmf.cnf not found in these directories: /usr/bin:/usr/bin/share/texmf-local/web2c:/usr/bin/share/texmf-dist/web2c:/usr/bin/share/texmf/web2c:/usr/bin/texmf-local/web2c:/usr/bin/texmf-dist/web2c:/usr/bin/texmf/web2c:/usr:/usr/share/texmf-local/web2c:/usr/share/texmf-dist/web2c:/usr/share/texmf/web2c:/usr/texmf-local/web2c:/usr/texmf-dist/web2c:/usr/texmf/web2c://texmf-local/web2c:/://share/texmf-local/web2c://share/texmf-dist/web2c://share/texmf/web2c://texmf-local/web2c://texmf-dist/web2c://texmf/web2c. /usr/local/texlive/2023/bin/x86_64-linux/mktexfmt: kpsewhich -var-value=TEXMFROOT failed, aborting early. BEGIN failed--compilation aborted at /usr/local/texlive/2023/bin/x86_64-linux/mktexfmt line 25.
Process exited with error(s)
看起来它找不到已安装的 texlive 文件。请问我该如何修复?
/usr/local/texlive/2023/install-tl
我是否需要运行该脚本?