[Tex/LaTex] PGF doesn’t work under Ubuntu 11.10

graphicstikz-pgfUbuntu

I updated my Ubuntu to the newest version 11.10 recently. Today when I use PGF again, i find many of my old examples cannot compile. It always give the error information as:

! Package PGF Math Error: The function `reciprocal' already exists.

See the PGF Math package documentation for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.156 ...@\pgfmath@reciprocaltemp0000000\pgfmath@}


! Package PGF Math Error: The function `div' already exists.

See the PGF Math package documentation for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.212 }


! Package PGF Math Error: The function `mod' already exists.

See the PGF Math package documentation for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.228 }

Does anyone have the same problem?

EDIT: I have followed the suggestions by many people here that I have installed TeXLive 2011 manually and updated the path, and logout and login again. The sad thing is that the problem still exists. I am wondering whether the problem really comes from the TeXlive 2009? 🙁

Best Answer

You could update your PGF version, either

  • get it from CTAN if this stable one is newer than yours from the Ubuntu repositories,
  • get PGF from CVS,
  • or get a build (TDS archive) from Paul's webpage.

If the problem persists, check which related packages you are using, such as pgfplots, which could cause the problem. Identify (by commenting out) and update, if necessary, to get a version which is compatible to your PGF version.

Note that the tlcontrib texlive repository has an up to date version of pgf-cvs but you cannot use it for two reasons:

  • the tlmgr is disabled with debian/ubuntu packaged texlive;
  • the tlcontrib repository works only with texlive 2010 and texlive 2011.