TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I recently installed texlive from the internet (using tar found here).
When the installation finished, I added the following lines to /etc/bash.bashrc:

PATH=/usr/local/texlive/2013/bin/i386-linux:$PATH; export PATH
MANPATH=/usr/local/texlive/2013/texmf-dist/doc/man:$MANPATH; export MANPATH
INFOPATH=/usr/local/texlive/2013/texmf-dist/doc/info:$INFOPATH; export INFOPATH

The same three lines I added to ~/.profile and to ~/.bashrc

Also I added this line to the manpath file (/etc/manpath.config):

MANPATH_MAP /usr/local/texlive/2013/bin/i386-linux  /usr/local/texlive/2013/texmf-dist/doc/man

I'm not really sure what it means to add those lines to those files, but it doesn't seem to change anything if I leave them there or if I cut them off.

Now, when I try to compile something on Texmaker, I get an error:

! LaTeX Error: File `package_name.sty' not found.

That comes from the file


So as I can see, Texmaker is looking for the packages on the path:


but all the packages installed by texlive are on the path:


The first path, I think, came up when I installed (from Software Manager) the packages texlive-latex-base and texlive-latex-extra.
Now that I have the actual texlive, I removed those packages and manually remove the directories they created (So now /usr/share/texlive/texmf-dist/tex/latex doesn't even exist!)

I tried removing and reinstalling Texmaker (after I deleted the previous directory), and same thing with TexLive (I installed TexLive first and then Texmaker), but nothing changed.

Now, all I need to do is tell Texmaker where all the packages are, but I guess that's what adding those lines to the mentioned files is all about.

So, I don't know. Did I do something wrong? Is there any other way to manually tell Texmaker where to find the packages?

Thank you for reading this, I appreciate your time.

I use Linux Mint 15 Olivia.

share|improve this question
First, as a sanity check, can you compile the document from the command line? That is, forget TeXmaker for a minute and just check that TeX Live really is installed correctly. If that fails, check the output of echo $PATH. If it succeeds, then you can return to the issue in TeXmaker. Also, please tell us which GNU/Linux distro you are using. How to install “vanilla” TeXLive on Debian or Ubuntu? may be helpful (especially if you use Debian/Ubuntu but even if you don't.) – cfr Apr 15 '14 at 21:08
Assuming from the package names that you're on Debian or Ubuntu, I'm going to bet you still have texlive-base or other distribution-provided TeX packages installed, and those are what you're running. Running which pdflatex and dpkg -l | grep texlive will tell for certain. – Mike Renfro Apr 15 '14 at 21:37
@cfr I can compile from the command line. But now I can't compile the same document from Texmaker. I don't think that's normal. I'll read the docummentation and see if that helps. – Joshua Apr 15 '14 at 21:55
@MikeRenfro which pdflatex gives /usr/local/texlive/2013/bin/i386-linux/pdflatex, which Ok. dpkg -l | grep texlive gives no output at all – Joshua Apr 15 '14 at 22:00
By the way, you ought not set MANPATH at all (probably). Doing so is deprecated on most distributions. How did you install TeXmaker? – cfr Apr 15 '14 at 22:06

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.