<div dir="auto">Thank you for your reply. <div dir="auto"><br></div><div dir="auto"> I want to mention that many answers in the Tex.se site are misleading. One reason is that You have gave me good information about setting a path locally or globally. I didn't came across any of this before.</div><div dir="auto"><br></div><div dir="auto">Well. I have installed the TeXlive from DVD (3.48 GB), which I am sure that it installed everything.</div><div dir="auto"><br></div><div dir="auto"> My problem is that I probably didn't set the path correctly. Could you give some directions about how to set the path globally in Ubuntu 18.04 . And about refreshing the file name database. And how can I check all of that.</div><div dir="auto"><br></div><div dir="auto">Because I am having a problem of missing packages and classes which I have checked that they are located in use/local/texlive/2018/.....</div><div dir="auto"><br></div><div dir="auto">Best regards</div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Sep 21, 2018, 00:58 Norbert Preining <<a href="mailto:preining@logic.at">preining@logic.at</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Lahcene,<br>
<br>
thanks for your message.<br>
<br>
> TeXLive and TeXstudio many times because of a problem of not being able to<br>
> compile a simple file. Until I found this incredible answer here<br>
> <<a href="https://tex.stackexchange.com/a/177073/165284" rel="noreferrer noreferrer" target="_blank">https://tex.stackexchange.com/a/177073/165284</a>>.<br>
<br>
This is completely unrelated out of the following reasons:<br>
* you originally posted that you installed TeX Live from TUG into<br>
/usr/local/texlive/2012<br>
* you installed only the basic, which, by its description, does not<br>
provide a full environment. We strongly suggest installing the <br>
default texlive-full.<br>
* the answer you linked to is about installing the Debian/Ubuntu version<br>
of TeX Live, which is again something different.<br>
<br>
So, without going down to details, I guess what has happened:<br>
- you installed TeX Live from TUG into /usr/local/texlive/2012<br>
- you did NOT adjust the PATH setting globally (in /etc/profile or<br>
similar) but locally in ~/.bashrc or similar<br>
- you started TeXstudio from your Desktop Environment, but there your<br>
local PATH settings did not take effect<br>
- TeXstudio couldn't find any tex because, well, as I wrote, it is<br>
not in the PATH<br>
- you called "apt-get install texlive-fonts-recommended" which installed<br>
TeX Live from Debian/Ubuntu into /usr/bin, which is in the PATH of<br>
the default desktop environment<br>
- TeXstudio now uses the TeX Live from Debian/Ubuntu in /usr/bin instead<br>
of the one you installed in /usr/local/texlive/2012<br>
<br>
Anyway, there are many answers on tex.sx about this, and this is nothing<br>
*we* as TeX Live developers can fix for you, because it is your computer<br>
and we cannot do magic tricks there.<br>
<br>
Best<br>
<br>
Norbert<br>
<br>
--<br>
PREINING Norbert <a href="http://www.preining.info" rel="noreferrer noreferrer" target="_blank">http://www.preining.info</a><br>
Accelia Inc. + JAIST + TeX Live + Debian Developer<br>
GPG: 0x860CDC13 fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13<br>
</blockquote></div>