Jey,
I would check and see if the package is part of the native distribution. I know for a fact an HTML Tidy package (binary) is part of
Ubuntu. I just found one for
Fedora. And there appears to be a source package for
RHEL4. In these distributions you're better off using the code the distribution provides.
Sincerely,
David.