I don't know much about Ubuntu (I run debian), but if the compile is thinking you don't have x86 architecture, then maybe you are running the wrong kernel. I would check into upgrading your kernel to the right one for your P4.
You might also want to look over some of the wikis on Linux Servers from this page:
http://www.eqemulator.net/wiki/wikka...CategoryServer