error: utf8_mime2text() has new signature

编译php过程中遇到两个报错,此处只是做个记录。

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

因为少一个组件导致,解决方法:yum install libc-client-devel

2、对64位系统安装好libc-client-devel不做调整还会报另外一个错误:configure: error: Cannot find imap library (libc-client.a). Please check your c-client installation.

解决办法:ln -s /usr/lib64/libc-client.so /usr/lib/libc-client.so