PHP compilation fails on IMAP U8T_DECOMPOSE: The Debian solution

Written by - 0 comments

Published on - Listed in PHP Linux


It's everytime the same game. You compile PHP and you get errors that some packages are not installed. That's OK - the problem is, that on some distros the target package is called differently.

So what about this compilation error, which might appearif you compile PHP with imap support:

checking for IMAP support... yes
checking for IMAP Kerberos support... yes
checking for IMAP SSL support... yes
checking for utf8_mime2text signature... new
checking for U8T_DECOMPOSE...
configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information.

Unfortunately there is not really an indication which package to install. By using a search engine with the above error message as keywords will give you several pages (e.g. a blog and a php bug) with the following solution:

yum install libc-client-devel

So the missing package seems to be libc-client-devel. But as one can see on the command yum, this ain't Debian. To find the appropriate Debian package, you can launch this command:

# apt-cache search libc-client
libc-client2007b-dev - c-client library for mail protocols - development files
libc-client2007b - c-client library for mail protocols - library files

Seems about right, so let's install them:

# aptitude install libc-client2007b
# aptitude install libc-client2007b-dev

And let's continue with the PHP compilation:

...
checking for IMAP support... yes
checking for IMAP Kerberos support... yes
checking for IMAP SSL support... yes
checking for utf8_mime2text signature... new
checking for U8T_DECOMPOSE...
checking for pam_start in -lpam... yes
checking for crypt in -lcrypt... yes
checking whether build with IMAP works... yes
...

Success!


Add a comment

Show form to leave a comment

Comments (newest first)

No comments yet.

RSS feed

Blog Tags:

  AWS   Android   Ansible   Apache   Apple   Atlassian   BSD   Backup   Bash   Bluecoat   CMS   Chef   Cloud   Coding   Consul   Containers   CouchDB   DB   DNS   Database   Databases   Docker   ELK   Elasticsearch   Filebeat   FreeBSD   Galera   Git   GlusterFS   Grafana   Graphics   HAProxy   HTML   Hacks   Hardware   Icinga   Influx   Internet   Java   KVM   Kibana   Kodi   Kubernetes   LVM   LXC   Linux   Logstash   Mac   Macintosh   Mail   MariaDB   Minio   MongoDB   Monitoring   Multimedia   MySQL   NFS   Nagios   Network   Nginx   OSSEC   OTRS   Office   OpenSearch   PGSQL   PHP   Perl   Personal   PostgreSQL   Postgres   PowerDNS   Proxmox   Proxy   Python   Rancher   Rant   Redis   Roundcube   SSL   Samba   Seafile   Security   Shell   SmartOS   Solaris   Surveillance   Systemd   TLS   Tomcat   Ubuntu   Unix   VMWare   VMware   Varnish   Virtualization   Windows   Wireless   Wordpress   Wyse   ZFS   Zoneminder