It's been a little while since RedHat 9, especially if you haven't upgraded your compiler / linker to a new version. Your best bet for moving code is in source format, complete with a tweakable Makefile.
This is the reason that binary distribution hasn't evolved nearly as much within the open source community as it has within, say, the Windows community. Sure we've got packages, but you need a different one for each distro and release version. And even then, sometimes you can kiss your package install goodbye because of library version conflicts. But that's a good thing, though; because source is always better than binary.