8

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

but TeXstudio can't find any distribution.

OS: Ubuntu 16.04 LTS

root@zz: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@zz: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

  • I don't think the debian packaged version installs in /usr/local what does which tex report as the location of tex? – David Carlisle Jan 13 '17 at 14:34
  • It returns: /usr/bin/tex, so what should I set my PATH as? – Nathan Explosion Jan 13 '17 at 14:38
  • it is hard to imagine that /usr/bin is not already in your path – David Carlisle Jan 13 '17 at 14:47
  • I think that is already on my PATH, but I really don't know why Texstudio can't find distribution. – Nathan Explosion Jan 13 '17 at 14:49
  • 1
    I would install texstudio after texlive so TS could find TL. – tatojo Feb 11 '17 at 4:55
5

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 its output, e.g., /usr/local/texlive/2017/bin/x86_64-linux/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!

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.