# Did I install a package successfully?

On my Ubuntu system, I have already installed texlive-full under /usr/share from long time ago.

I just tried a simple example with \usepackage{tikz} and it did work fine.

Later, I added \usetikzlibrary{intersections,positioning} to my LaTeX code in order to use the TikZ library intersections, but LaTeX complained about not finding it (if I remember correctly).

I didn't know much to do then, and just went to download PGF 2008-08-28. I unziped the archive and put it under ~/texmf/tex. Then latex did not report the previous complaint, but instead it complained about something like:

! Undefined control sequence. \pgfsetpath l.77 ...e[name intersections={of=line1 and line2}] (a) at (intersection-1) {}; The control sequence at the end of the top line of your error message was never \def'ed. If you have misspelled it (e.g., \hobx'), typeI' and the correct spelling (e.g., 'I\hbox'). Otherwise just continue, and I'll forget about whatever was undefined.

on the 77th line in the latex code:

\node[name intersections={of=line1 and line2}] (a) at (intersection-1) {};


The full code can be seen in a reply to my other post

So I was wondering if I have installed all the packages and libraries that I need? If not, how to do that correctly?

I guess my texlive-full installed long time ago under /usr/share might already have the PGF (although I am not sure). Is the one (PGF 2008-08-28) I just installed under ~/texmf/tex redundant?

-

\node (a) at (2, 2.5) {};