You very likely have your $HOME containing a final slash /. This expands to // after $HOME in the definition of $TEXMF and thus all of your home is searched.
By default $HOME does not contain this final /, so it might have been added locally in your init files.
Other than that, on Debian/Ubuntu TeX Live you change settings by adding lines to /etc/texmf/web2c/texmf.cnf
(creating if necessary).
First suggestion would be, Check if the caption.sty
file is somewhere on the system
$ locate caption.sty
If it is not installed, most probably the package is not on the basic configuration of texlive
.
I used the command
$ apt-cache search caption | grep tex
and found the following packages
texlive-latex-recommended - TeX Live: LaTeX recommended packages
texlive-pictures - TeX Live: Graphics, pictures, diagrams
texlive-latex-extra - TeX Live: LaTeX additional packages
telxcc - Teletext closed captioning decoder
Install them,
$ sudo apt-get -y install texlive-latex-recommended texlive-pictures texlive-latex-extra
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 the texlive
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
file
PATH=$PATH:/usr/local/texlive/2013/bin/x86_64-linux
export PATH
MANPATH=$MANPATH:/usr/local/texlive/2013/texmf/doc/man
export MANPATH
INFOPATH=$INFOPATH:/usr/local/texlive/2013/texmf/doc/info
export INFOPATH
Cheers.
Best Answer
i do the same thing as you (
12.04
,tl 2012
). i created a partition/local/texlive/2012
and installed tex live into that.when i need to use
tl
(when i'm working for myself, rather than as a sys-admin for people who are using unadorned ubuntu tex), i addat the front of my path. my bash command is
which means that
tl2012
will be searched before any ubuntu-installed stuff.texlive is configured so that it will see the
texmf
trees, by default, from its knowledge of where it was installed.the arrangement should work for you, if you can arrange your tree(s) to look similar.
(i've been using this arrangement since 2009 (i.e., since i was diddling with tl2009.)