gpt4 book ai didi

php - 在centos上从src代码编译PHP5.5失败

转载 作者:太空宇宙 更新时间:2023-11-03 17:20:25 30 4
gpt4 key购买 nike

我正在尝试使用源代码中的 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

有什么建议吗?

最佳答案

从顶部开始:

$ cd /usr/local/
$ wget http://ftp.ntua.gr/pub/net/mail/imap/imap-2007f.tar.gz
$ tar -xvzf imap-2007f.tar.gz
$ cd /imap-2007f
$ make lrh

imap 现在应该构建...现在调整 ./configure 中的 php 参数:

./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-xmlrpc --enable-fpm --with-pdo-oci=instantclient,/usr,12.1 --with-fpm-user=www-data --with-fpm-group=www-data --with-imap=/usr/local/imap-2007f/ --with-imap-ssl --enable-pic --with-libdir=/usr/local/imap-2007f/lib/

If you receive an error in config.log such as:

make: *** No rule to make target /usr/local/src/php-5.5.38/ext/imap/php_imap.c', needed by ext/imap/php_imap.lo'. Stop.

您可能缺少上述目录中的 php_imap.c 文件。一旦这个问题得到解决,那么您应该能够使用 imap 成功构建您的 php

关于php - 在centos上从src代码编译PHP5.5失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57586844/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com