configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information

Quickly fix the "configure: error: utf8_mime2text()" error encountered while compiling PHP. Find a simple solution for Debian, Ubuntu, CentOS, and RedHat.

While compiling PHP, we may run into several errors, mainly resulting from missing developer libraries; here's one of them:

configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information.

To eliminate the above error, we install the following package:

  • Debian / Ubuntu : aptitude install libc-client-dev (32/64 bit)
  • RedHat / CentOS / Fedora : yum install libc-client-devel.x86_64 (64 bit) / yum install libc-client-devel (32 bit)