我无法将IMAP配置为PHP扩展

时间:2018-09-21 04:52:01

标签: php php-extension

我无法将IMAP配置为PHP扩展。

我关注Add IMAP PHP Extension

因为我在CentOS 7中,所以替换了

  

apt-get install -y libc-client-dev libkrb5-dev

yum install -y uw-imap-devel libc-client  
yum -y install krb5-server krb5-libs

我的配置如下:

./configure \
        --prefix=/usr/local/php-${php_version} \
        --with-config-file-path=/usr/local/php-${php_version}/etc \
        --enable-fpm \
        --with-fpm-user=www \
        --with-fpm-group=www \
        --with-mysqli \
        --with-pdo-mysql \
        --with-libdir=lib64 \
        --with-iconv-dir \
        --with-freetype-dir \
        --with-jpeg-dir \
        --with-png-dir \
        --with-zlib \
        --with-libxml-dir=/usr \
        --enable-xml \
        --disable-rpath  \
        --enable-bcmath \
        --enable-shmop \
        --enable-sysvsem \
        --enable-inline-optimization \
        --with-curl \
        --enable-mbregex \
        --enable-mbstring \
        --enable-ftp \
        --with-gd \
        --enable-gd-native-ttf \
        --with-openssl \
        --with-mhash \
        --enable-pcntl \
        --enable-sockets \
        --enable-opcache \
        --with-xmlrpc \
        --enable-zip \
        --enable-soap \
        --without-pear \
        --with-gettext \
        --disable-fileinfo \
        --enable-maintainer-zts \
        --with-kerberos \
        --with-imap-ssl \

但是在make & make install之后,/usr/local/php-7.1.16/lib/php/extensions/no-debug-zts-20160303/中不存在imap.so

# cd /usr/local/php-7.1.16/lib/php/extensions/no-debug-zts-20160303/
[root@localhost no-debug-zts-20160303]# ls
opcache.a  opcache.so

0 个答案:

没有答案