# TikZ Library Not Found

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?

-
The `intersections` library is part of TikZ, you don't need to install it separately. If TikZ cannot find it, it could mean that your TikZ package is incorrectly installed. – Jan Hlavacek Feb 8 '11 at 21:46
Are you using TeXLive 2009 or 2010? I believe TeXLive 2009 does not have the version of TikZ that includes the intersections library. – Jake Feb 8 '11 at 21:59
The 2009 version of texlive is outdated. It is a pain that it ships with e.g. ubuntu. You can either fully update to texlive 2010 or just update the tikz package manually – Martin H Feb 8 '11 at 22:02
@Hanmyo I installed texlive 2010 in full on my ubuntu 10.10 without any problems. You are right that there is no update from 2009 to 2010. A problem you might run into if you use kile as an editor is that is for some weird reason connected to texlive 2009. I ended up building kile from source. If it is just tikz you are after, the manual package update is easier and for sure quicker – Martin H Feb 8 '11 at 22:28
@Martin or Jake: Could you please add your comment (that one needs v2.10 of TikZ) as an answer, so that it can get accepted. Installing TeX Live manually on Ubuntu should be a separate question. – Caramdir Feb 8 '11 at 22:34

## 1 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.

-
I am accepting this answer. What I had to do, because I like using Kile as my LaTeX editor, is: - Uninstall Kile - Uninstall all signs of TeXLive in synaptic - Install TeXLive 2010 link - Reinstall Kile from source link - Make it so I can run kile easily from the command line... alias kile='KDEDIRS=\$HOME/kile-install:\$KDEDIRS \$HOME/kile-install/bin/kile' I also tried a couple of other things like changing paths and folder names in the process, but I think those didn't affect it much. – Hanmyo Feb 9 '11 at 19:58