How can I make RHEL server libraries compatible with tex/Rnw documents created on my Ubuntu desktop, re: pgf, tikz, expl3

I want to compile tex and Sweave documents written on a server that is redhat, but I get errors linked to pgf/tikz. The documents compile fine on my

1. used wget to download the expl3 package to ~/texmf on the server and
2. removed todonotes options since these caused an error
3. rsync'd (copied) all of /usr/share/texmf-texlive/tex from my desktop to ~/texmf/tex on the server.
4. texhash on the server (although I can only do this for my home ~/texmf

However, now I am getting an error related to the pgf library:

``````(/home/a-m/dlebauer/texmf/tex/generic/pgf/frontendlayer/tikz/tikz.code.tex
! Undefined control sequence.
l.15 \usepgflibrary
{plothandlers}
``````

I tried changing usepgflibrary to usetikzlibary as suggested on help list, but I just got the same error for the different command.

Furthermore, I'd like to tell my the server administrator how to solve this rather than just say "can you please configure the server so that pdflatex foo.tex works" so that I can save him some googling.

-
I removed the `pdflatex` tag because I failed to see how your question is specifically related to pdfLaTeX in contrast to traditional LaTeX. I have to confess I still fail to see it. –  lockstep Nov 11 '10 at 17:44
@lockstep - thanks for the clarification. I included the tag for two reasons, neither of which directly implicates pdflatex in the error: first, the error is generated when I use pdflatex file.tex, and second, I found that pdflatex is often associated with pgf and tikz errors. In the same way, sweave is also only guilty by association so I have also removed it. I am unfamiliar with the mechanisms behind these errors. –  David Nov 11 '10 at 18:08

Probably the easiest way is to install a current version of TeX Live on both machines and then remove the package manager version and anything you manually added to `texmf`. Linux package managers usually have outdated TeX Live versions and different distros have different bugs in their TeX distributions. Manually installing TeX Live is actually pretty easy as it comes with precompiled binaries.