On CentOS 5.8 while installing php 5.4.6:
configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing
yum install libc-client-devel
http://cpanelforums.net/php-recompilation-errors/
configure: error: mcrypt.h not found. Please reinstall libmcrypt.
yum install libmcrypt-devel
configure: error: Cannot find libtidy
yum install libtidy libtidy-devel