如何为PHP安装`imap.so`?

时间:2018-09-20 11:05:32

标签: php imap

这是在GitHub中安装PHP的重击:

install_php()
{
    local configure_str=$(cat <<EOF
./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 \  # the --with-kerberos is added by me
            --with-imap-ssl    # the --with-imap-ssl is added by me
EOF
)
    cd $basepath

    tar -zxvf php-${php_version}.tar.gz
    cd ./php-${php_version}
    $configure_str
    make 
    make install

    # create a link to php
    ln -sf /usr/local/php-${php_version}/bin/php /usr/local/bin/

    # write php-fpm configure
    cat > /usr/local/php-${php_version}/etc/php-fpm.conf <<EOF

我想安装imap php,所以我在bash中添加了--with-kerberos --with-imap-ssl,还安装了libc-client-devel

yum install -y uw-imap-devel libc-client
ln -s /usr/lib64/libc-client.so /usr/lib/libc-client.so 

但是在我安装了PHP(对于PHP执行./install.sh)之后,在

/usr/local/php-7.1.16/lib/php/extensions/no-debug-zts-20160303/

只有:

opcache.a  opcache.so

没有imap.so

如何为PHP安装imap.so


EDIT-01

我尝试添加--with-imap,然后重新运行./install.sh,但仍然没有在目录中生成imap.so

0 个答案:

没有答案