6

Not sure if this is the right forum for this question (although this similar SO question encouraged me), but I can't get TexStudio to find my installation of TexLive.

I'm running Linux Mint 17.

I've followed the instructions here by adding /usr/local/texlive/2014/bin/x86_64-linux to my .bashrc and even added it to both /etc/profile and /etc/environment just for good measure.

When I start a Terminal, typing pdflatex works just fine.

But TexStudio continues not to be able to find the pdflatex executable complaining Error: Could not start the command: pdflatex -synctex=1 -interaction=nonstopmode "foo".tex

So my question is: to what does the texlive install directory have to be added so that TexStudio knows where to find it?

Community
  • 1
  • 1
LondonRob
  • 73,083
  • 37
  • 144
  • 201

2 Answers2

9

I was able to add TeXLive to TeXstudio's $PATH through the GUI by following these steps:

  1. Open "Configure TeXstudio..." from the "Options" dropdown menu.
  2. Check "Show Advanced Options".
  3. Go to the "Build" section.
  4. In the "Build Options", fill in the TeXLive bin directory in the "Commands ($PATH)" field.

TeXstudio should now find the TeXLive binaries without problem.

Mohamed Laradji
  • 144
  • 3
  • 6
  • 1
    I'm using Ubuntu 18.04 and tex-live 2020 and this worked for me. It didn't however when I provided `/usr/local/texlive/2020/bin/x86_64-linux`. Trim the `x86_64-linux` out, and you are good to go. – arash Oct 26 '20 at 18:54
  • 1
    I am on a MAC and was not too sure what the exact $PATH was. What worked for me was opening the terminal and tying `which latex`. The terminal returned the path of my latex installation. Copied the path and pasted into the "Commands ($PATH)" field.. – user3204008 Apr 22 '22 at 00:50
5

Oops... Turns out /etc/environment requires a restart before it takes effect.

Rebooted my system and things now work fine. Hat tip to this answer for giving me the heads up.

Community
  • 1
  • 1
LondonRob
  • 73,083
  • 37
  • 144
  • 201