Direct Admin - php build configure.php

Brenden

Verified User
Joined
Oct 24, 2003
Messages
27
Just wondering if anyone knows where I might be going wrong on... I'm trying to build PHP with imap, gmp , mailparse, mcrypt. My /usr/local/directadmin/custombuild/configure/ap2/configure.php72 file is as follows:

Code:
#!/bin/sh
./configure \
        --with-apxs2 \
        --with-config-file-scan-dir=/usr/local/lib/php.conf.d \
        --with-curl \
        --with-gd \
        --with-gettext \
        --with-jpeg-dir=/usr/local/lib \
        --with-freetype-dir=/usr/local/lib \
        --with-libxml-dir=/usr/local/lib \
        --with-kerberos \
        --with-openssl \
        --with-mhash \
        --with-mysql-sock=/var/lib/mysql/mysql.sock \
        --with-mysqli=mysqlnd \
        --with-pcre-regex=/usr/local \
        --with-pdo-mysql=mysqlnd \
        --with-pear \
        --with-png-dir=/usr/local/lib \
        --with-sodium=/usr/local \
        --with-webp-dir=/usr/local/lib \
        --with-xsl \
        --with-zlib \
        --enable-zip \
        --with-iconv=/usr/local \
        --enable-bcmath \
        --enable-calendar \
        --enable-exif \
        --enable-ftp \
        --enable-sockets \
        --enable-soap \
        --enable-mbstring \
        --with-icu-dir=/usr/local/icu \
        --with-gmp \
        --with-mailparse \
        --with-mcrypt \
        --with-imap \
        --enable-intl
I have intalled uw-imap-devel libc-client via
Code:
yum install epel-release ; yum install uw-imap-devel libc-client
However it fails with
Code:
configure: error: Cannot find imap library (libc-client.a). Please check your c-client installation.
.

Any suggestions? I'm sure its something really simple or i'm misunderstanding how building php works on Direct Admin.
 

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
14,255
Location
GMT +7.00
On CentOS:

Code:
ln -s /usr/lib64/libc-client.a /usr/lib/libc-client.a
ln -s /usr/lib64/libc-client.so /usr/lib/libc-client.so
and try again.
 

Darius

Verified User
Joined
Dec 20, 2019
Messages
7
On CentOS:

Code:
ln -s /usr/lib64/libc-client.a /usr/lib/libc-client.a
ln -s /usr/lib64/libc-client.so /usr/lib/libc-client.so
and try again.
Hi, maybe you know what i am wrong?

configure: error: This c-client library is built with SSL support.
Add --with-imap-ssl to your configure line. Check config.log for details.
 

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
14,255
Location
GMT +7.00
Hi, maybe you know what i am wrong?

configure: error: This c-client library is built with SSL support.
Add --with-imap-ssl to your configure line. Check config.log for details.

My post from above is only one step, i.e. one fix, there are more steps required to be done to get PHP IMAP installed.
 
Top