With the 64-bit version of Ubuntu, you can't use the standard libraries - you need the 32-bit versions (otherwise things wont work). Which means slightly different files to get install - if I remember correctly, it has -32 at the end of the filename part of the file.
The main problem was finding the correct files (and any dependencies). With Ubuntu its fairly easy (and some nice chappie had written a utility to find the needed files), but with Mandriva and even more so with CentOS, it gets a bit complicated - never did find everything needed unfortunately.