I am using texlive 2013, and just ran the following command to update the packages.
sudo ./tlmgr update -all
After it finished, I tried to compile tex documents that uses tikz
package as the following MWE shows:
\documentclass{article}
\usepackage{tikz}
\begin{document}
aaaa
\end{document}
Then pdflatex complains; it said:
(/usr/local/texlive/2013/texmf-dist/tex/latex/pgf/utilities/pgfrcs.sty
(/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/utilities/pgfutil-common.tex
! I can't find file `pgfutil-common-lists.tex'.
l.556 \input pgfutil-common-lists.tex
The problem is that, pgfutil-common-lists.tex is indeed in the directory:
/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/utilities/
Why is that? pdflatex should be able to find it, right?
I even download the pgf package again, and replace the pgf directory in
/usr/local/texlive/2013/texmf-dist/tex/generic/
Nothing changed at all……….. Any idea? Thank you for your critics.
%=====================================================================
Then followed the comments, I type the following command in the terminal:
sudo mktexlsr
gives mecommand not found
;-
mktexlsr
gives me:mktexlsr: /usr/local/texlive/2013/../texmf-local: directory not writable. Skipping…
mktexlsr: /usr/local/texlive/2013/texmf-config: directory not writable. Skipping…
mktexlsr: /usr/local/texlive/2013/texmf-dist: directory not writable. Skipping…
mktexlsr: /usr/local/texlive/2013/texmf-var: directory not writable. Skipping…
mktexlsr: Done; -
For
kpsewhich pgfutil-common-lists.tex
, nothing pops up.
Best Answer
It looks like that your path setting is wrong. Try once
change
x86_64
if you do not have a 64 bit system. Then run againsudo mktexlsr
If it works then add to your local.bashrc
: