【发布时间】:2019-08-26 17:02:00
【问题描述】:
我正在尝试使用 imap 从其源代码编译 php,但是在运行以下 configure 命令时:
./configure \
--prefix=/opt/php5 \
--with-config-file-path=/opt/php5/etc \
--with-config-file-scan-dir=/opt/php5/etc/php.d \
--with-curl \
--with-gd \
--with-jpeg-dir=/usr/lib64 \
--with-png-dir \
--with-xpm-dir \
--with-freetype-dir \
--with-t1lib \
--with-mcrypt \
--with-mhash \
--with-mysql \
--with-mysqli \
--with-pdo-mysql \
--with-openssl \
--with-xsl \
--with-bz2 \
--with-gettext \
--with-pear \
--with-zlib \
--enable-exif \
--enable-wddx \
--enable-bcmath \
--enable-calendar \
--enable-ftp \
--enable-mbstring \
--enable-soap \
--enable-sockets \
--enable-shmop \
--enable-dba \
--enable-sysvmsg \
--enable-sysvsem \
--enable-zip \
--enable-sysvshm \
--with-libdir=lib64 \
--with-xmlrpc \
--enable-fpm \
--with-pdo-oci=instantclient,/usr,12.1 \
--with-imap=/usr/local/imap/imap-2004g/ \
--with-imap-ssl \
--enable-pic \
--with-imap=/usr/local/imap-2004g/lib
它给出以下错误:
configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information.
我为utf8_mime2text 安装了所有必需的库,但同样的错误不断发生也使解决方案here 感到疲倦
Package uw-imap-devel-2007f-16.el7.x86_64 already installed and latest version
config.log 文件显示这可能是相关的:
configure:47265: checking for utf8_mime2text signature
configure:47287: cc -c -I conftest.c >&5
cc: fatal error: no input files
compilation terminated.
configure:47287: $? = 4
configure: failed program was:
操作系统:CentOS 7
有什么建议吗?
【问题讨论】:
-
危险:PHP 5.5 已经过时了。不支持。它没有获得安全更新。不要使用它。
-
我们知道,按计划升级,但是我需要尽快使用 php 的模块。