Complile PHP with imap on directadmin server

Trying to add --with-imap to your configure.php5 ?
and getting this error?

configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing

Solution (worked for me, this was a dovecot machine):

# yum install libc-client
# yum install libc-client-devel
Then add following lines in

nano /usr/local/directadmin/custombuild/configure/ap2/configure.php5

--with-imap=/usr/lib/dovecot/imap \
--with-imap-ssl \

to: configure.php5

# cd /usr/local/directadmin/custombuild/configure/ap2

# ./build php y

Tada!

    1 comments:

  1. o: configure.php5

    - # cd /usr/local/directadmin/custombuild/configure/ap2
    +# cd /usr/local/directadmin/custombuild/

    # ./build php y