installing gcc as a cross-compiler

The easiest way to get gcc up and running as a cross-compiler is to download pre-built tarballs.

pick a version

First you'll need to decide which version of gcc you want to set up.

installing

Now all you need to do is untar a couple files:
  1. cd /usr/local
  2. expand the binutils archive
  3. expand the gcc archive you chose
  4. copy standard system libraries
The last step is there because gcc needs a few shared libraries to run. You can cheat and use my libs and headers tarball, or copy the files over from your ps2 system as described in the build instructions.

That should get gcc working, but now you'll need to copy whatever other libraries you need from the ps2 system as well. One possible place to put them would be /usr/local/ps2/mipsEEel-linux/lib, but I'll leave that up to you.. :)