[Tex/LaTex] Can’t find distribution after installing TeXstudio and TeX Live

texlivetexstudio

I first installed TeXstudio, and then TeX Live-full,

but TeXstudio can't find any distribution.

OS: Ubuntu 16.04 LTS

root@user1:latex -version
pdfTeX 3.14159265-2.6-1.40.16 (TeX Live 2015/Debian)
kpathsea version 6.2.1
Copyright 2015 Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
There is NO warranty.  Redistribution of this software is
covered by the terms of both the pdfTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the pdfTeX source.
Primary author of pdfTeX: Peter Breitenlohner (eTeX)/Han The Thanh     (pdfTeX).
Compiled with libpng 1.6.17; using libpng 1.6.17
Compiled with zlib 1.2.8; using zlib 1.2.8
Compiled with poppler version 0.41.0

root@user1:tex -version
TeX 3.14159265 (TeX Live 2015/Debian)
kpathsea version 6.2.1
Copyright 2015 D.E. Knuth.
There is NO warranty.  Redistribution of this software is
covered by the terms of both the TeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the TeX source.
Primary author of TeX: D.E. Knuth.

Should I manually set the "Command" config of TeXstudio?

Someone says that I should set PATH as:

PATH=/usr/local/texlive/2016/bin/i386-linux:$PATH 

But I found there's no /local/texlive in this folder.

enter image description here

enter image description here

Best Answer

According to your screenshot, you installed TeX Live 2015, therefore I think the directory you add to the path variable, "/usr/local/texlive/2016/bin/i386-linux", makes no sense.

My solution (it worked for me) is following:

  1. call which latex on your terminal
  2. Copy the path of its output, e.g., /usr/local/texlive/2017/bin/x86_64-linux/ (without the trailing 'latex'), in your TexStudio Configuration PATH. You should select Options > Configure TexStudio > Build > Commands ($PATH) As I show you in the picture below. (Notice that in order to see all options you must click on the box Show Advanced Options at the bottom left corner) enter image description here

Then just try to build your LaTeX file. Enjoy it!