[Tex/LaTex] TikZ Library Not Found

installingpackagestikz-pgf

I am new to TikZ and reading through the manual working out the first example which happens to use the intersections library. When I try

\usetikzlibrary{intersections}

LaTex spits out the following error:

./tikz.tex:5:I can't find file `tikzlibraryintersections.code.tex'

Does anyone know how I can somehow get the library and where I should put it?

Best Answer

The intersections library is not included in pgf 2.0, which is the version that ships with TeXLive 2009 (which is the version of TeXLive that ships with Ubuntu up to version 10.10). As Martin suggested in the comments to the question, you can either install TeXLive 2010 directly from the website, or just update pgf to a recent version (2.10 at time of writing) as described in this answer.