Adding TexLive to TexStudio's understanding of path
Solution 1
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.
Solution 2
I was able to add TeXLive to TeXstudio's $PATH
through the GUI by following these steps:
- Open "Configure TeXstudio..." from the "Options" dropdown menu.
- Check "Show Advanced Options".
- Go to the "Build" section.
- In the "Build Options", fill in the TeXLive bin directory in the "Commands ($PATH)" field.
TeXstudio should now find the TeXLive binaries without problem.
![LondonRob](https://i.stack.imgur.com/QgeOJ.jpg?s=256&g=1)
LondonRob
I do data engineering and other heavy back-end stuff for a renewable energy company in the UK. Ask me anything about: Postgres Python SQL
Updated on June 22, 2022Comments
-
LondonRob about 2 years
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 complainingError: 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?
-
arash over 3 yearsI'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 thex86_64-linux
out, and you are good to go. -
user3204008 about 2 yearsI 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..