I just installed TexLive on a i386 Ubuntu 12.04 LTS machine.
Now when I try to compile a TeX file I get following error message:
! LaTeX Error: File `caption.sty' not found.
kpsewhich caption.sty gives
/usr/local/texlive/2013/../texmf-local/tex/latex/caption/caption.sty
I also tried installing caption with tlmgr but after doing that it doesn't work either.
The last thing I did was copy the contents of the usr/local/texlive/2013/texmf-dist/ folder to usr/local/texlive/texmf-local/ in hope that it maybe would work.
When i try to compile these are some of the lines that come before the error.
(/usr/share/texmf-texlive/tex/latex/base/size10.clo))
(/usr/share/texmf-texlive/tex/latex/graphics/graphicx.sty
(/usr/share/texmf-texlive/tex/latex/graphics/keyval.sty)
(/usr/share/texmf-texlive/tex/latex/graphics/graphics.sty
(/usr/share/texmf-texlive/tex/latex/graphics/trig.sty)
Does anybody know a solution to this?
Best Answer
First suggestion would be, Check if the
caption.sty
file is somewhere on the systemIf it is not installed, most probably the package is not on the basic configuration of
texlive
.I used the command
and found the following packages
Install them,
and try compiling again!
Friendly advise
If you have hard disk space to spare, I would recommend to install
texlive-full
, which contains all the packages of thetexlive
version on the repository. So you have less chance to have this type of problems.If you install manually
Make sure you add the following lines to your
~/.bashrc
fileCheers.