TransWikia.com

Kile or any TeX software cannot find 'TeX Live' binaries (manually installed) when launched from graphical menu or launcher icon

TeX - LaTeX Asked by Tanvir on July 26, 2021

I have recently installed latest TeX Live 2020. Post installation, I have added the PATH of texlive installation /usr/local/texlive/2020/bin/x86_64-linux to ~/.bashrc and /etc/environment. Now, if I start Kile from terminal it compiles any document using the installed Tex Live 2020 binaries. Infact it can locate all the binaries. No error.

The problem starts when I run Kile from graphical menu or launcher icon. It just cannot find the LaTeX binaries anymore. Compiling a document gives an error: <some-package>.sty not found. Why does this happen?

P.S. There are lots of question asked on here, related to this particular topic. I have gone through almost all of the solutions (most of them talk about setting the correct PATH). I have done that. Rebooted the sytem too.

So I am raising this question (again!) with a hope for a fresh solution.

One Answer

For now I could solve the issue where Kile can find the Tex Live 2020 binaries (manually installed) when it is run from graphical menu or launcher icon. I am listing the two solutions I found (links are provided below):

  1. Open Settings --> Configure Kile window. Click on the menu Build. It will list all of the known TeX tools. For example, select LaTeX. Go to the General tab and add the texlive binaries PATH in command field to include /latex, which will then look like this: /usr/local/texlive/2020/bin/x86_64-linux/latex

The above steps are repeated for each of the TeX tools we use frequently.

Once all are done run Settings --> System Check to see if Kile executes the LaTeX processes from the PATH assigned.

(Step 1 is explained in detail here).

  1. The second solution is to edit the file /etc/login.defs:
ENV_SUPATH  PATH=/usr/local/texlive/2020/bin/x86_64-linux:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ENV_PATH  PATH=/usr/local/texlive/2020/bin/x86_64-linux:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games

This solution was suggested to me here on raising a similar question for a TeX software (LaTexDraw). It too had similar issue like Kile.

I find Step 2 to work with any of TeX software (atleast for the two I have) where on starting it from graphical menu or launcher icon, it can locate all the latest LaTeX binaries.

Answered by Tanvir on July 26, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP