imap 探针显示支持 发信却失败
按照军哥给的安装命令会出现configure: error: This c-client library is built with Kerberos support.
Add --with-kerberos to your configure line. Check config.log for details.
于是根据提示分别加入了 --with-kerberos --with-imap-ssl
安装成功 探针显示imap支持 测试发信却失败 麻烦军哥看看 谢谢
# ./configure --with-php-config=/usr/local/php/bin/php-config --with-kerberos --with-imap-ssl
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /usr/local/php
checking for PHP includes... -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/php/lib/php/extensions/no-debug-non-zts-20060613
checking for PHP installed headers prefix... /usr/local/php/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... re2c
checking for re2c version... 0.13.5 (ok)
checking for gawk... gawk
checking for IMAP support... yes, shared
checking for IMAP Kerberos support... yes
checking for IMAP SSL support... yes
checking for utf8_mime2text signature... old
checking for U8T_DECOMPOSE...
checking for pam_start in -lpam... no
checking for crypt in -lcrypt... yes
checking for krb5-config... /usr/kerberos/bin/krb5-config
checking for pkg-config... /usr/bin/pkg-config
checking whether build with IMAP works... yes
checking whether rfc822_output_address_list function present... no
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking the maximum length of command line arguments... 98304
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h
config.status: config.h is unchanged
运行make test 测试都无法连接
=====================================================================
PHP : /usr/local/php/bin/php
PHP_SAPI : cli
PHP_VERSION : 5.2.17p1
ZEND_VERSION: 2.2.0
PHP_OS : Linux - Linux VPS-27445010 2.6.18-238.9.1.el5xen #1 SMP Tue Apr 12 18:53:56 EDT 2011 x86_64
INI actual: /root/lnmp0.8/php-5.2.17/ext/imap/tmp-php.ini
More .INIs:
CWD : /root/lnmp0.8/php-5.2.17/ext/imap
Extra dirs:
VALGRIND : Not used
=====================================================================
TIME START 2012-03-04 12:33:38
=====================================================================
PASS Bug #31142 test #1 (imap_mail_compose() generates incorrect output)
PASS Bug #31142 test #2 (imap_mail_compose() generates incorrect output)
PASS Bug #32589 (crash inside imap_mail_compose() function)
PASS Bug #35669 (imap_mail_compose() crashes with multipart-multiboundary-email)
PASS Bug #40854 (imap_mail_compose() creates an invalid terminator for multipart e-mails)
PASS Bug #44098 (imap_utf8() returns only capital letters)
PASS Bug #45705 test #1 (imap rfc822_parse_adrlist() modifies passed address parameter)
PASS Bug #45705 test #2 (imap rfc822_parse_adrlist() modifies passed address parameter)
PASS Bug #46918 (imap_rfc822_parse_adrlist host part not filled in correctly)
PASS Test imap_8bit() function : basic functionality
SKIP Test imap_alerts() function : error conditions reason: could not connect to mailbox {localhost/norsh}
SKIP Test imap_append() function : basic functionality reason: could not connect to mailbox {localhost/norsh}
PASS Test imap_base64() function : basic functionality
PASS Test imap_binary() function : basic functionality
SKIP imap_body() incorrect parameter count reason: could not connect to mailbox {localhost/norsh}
SKIP Test imap_body() function : basic functionality reason: could not connect to mailbox {localhost/norsh}
SKIP Test imap_bodystruct() function : basic functionality reason: could not connect to mailbox {localhost/norsh}
SKIP Test imap_clearflag_full() function : basic functionality reason: could not connect to mailbox {localhost/norsh}
SKIP Test imap_close() function : basic functionality reason: could not connect to mailbox {localhost/norsh}
SKIP Test imap_close() function : error conditions - incorrect number of args reason: could not connect to mailbox {localhost/norsh}
PASS Test imap_close() function : usage variations - different data types as $stream_id arg
SKIP Test imap_close() function : usage variations - different data types as $options arg reason: could not connect to mailbox {localhost/norsh}
PASS Test imap_close() function : usage variations - different streams
SKIP Test imap_close() function : usage variations - different ints as $options arg reason: could not connect to mailbox {localhost/norsh}
SKIP Test imap_createmailbox() function : basic functionality reason: could not connect to mailbox {localhost/norsh}
SKIP Test imap_errors() function : basic functionality reason: could not connect to mailbox {localhost/norsh}
SKIP imap_num_recent() incorrect parameter count reason: could not connect to mailbox {localhost/norsh}
SKIP Test imap_fetch_overview() function : basic functionality reason: could not connect to mailbox {localhost/norsh}
SKIP Test imap_fetch_overview() function : error conditions - incorrect number of args reason: could not connect to mailbox {localhost/norsh}
PASS Test imap_fetch_overview() function : usage variations - diff data types as $stream_id arg
SKIP Test imap_fetch_overview() function : usage variations - diff data types as $msg_no arg reason: could not connect to mailbox {localhost/norsh}
SKIP Test imap_fetch_overview() function : usage variations - FT_UID option reason: could not connect to mailbox {localhost/norsh}
PASS Test imap_fetch_overview() function : usage variations - different resources as $stream_id
SKIP Test imap_fetch_overview() function : usage variations - $msg_no argument reason: could not connect to mailbox {localhost/norsh}
SKIP Test imap_fetch_overview() function : usage variations - multipart message reason: could not connect to mailbox {localhost/norsh}
SKIP Test imap_fetchbody() function : basic functionality reason: could not connect to mailbox {localhost/norsh}
SKIP Test imap_fetchbody() function : error conditions - incorrect number of args reason: could not connect to mailbox {localhost/norsh}
PASS Test imap_fetchbody() function : usage variation - diff data types as $stream_id arg
SKIP Test imap_fetchbody() function : usage variation - diff data types as $msg_no arg reason: could not connect to mailbox {localhost/norsh}
SKIP Test imap_fetchbody() function : usage variation - diff data types as $section arg reason: could not connect to mailbox {localhost/norsh}
SKIP Test imap_fetchbody() function : usage variations - FT_UID option reason: could not connect to mailbox {localhost/norsh}
PASS Test imap_fetchbody() function : usage variation - different resources as $stream_id arg
SKIP Test imap_fetchbody() function : usage variations - $msg_no arg reason: could not connect to mailbox {localhost/norsh}
SKIP Test imap_fetchheader() function : basic functions reason: could not connect to mailbox {localhost/norsh}
SKIP Test imap_fetchheader() function : error conditions - incorrect number of args reason: could not connect to mailbox {localhost/norsh}
PASS Test imap_fetchheader() function : usage variations - diff data types as $stream_id arg
SKIP Test imap_fetchheader() function : usage variations - diff data types for $msg_no arg reason: could not connect to mailbox {localhost/norsh}
SKIP Test imap_fetchheader() function : usage variations - FT_UID option reason: could not connect to mailbox {localhost/norsh}
PASS Test imap_fetchheader() function : usage variations - diff resource types as $stream_id
SKIP Test imap_fetchheader() function : usage variations - $msg_no argument reason: could not connect to mailbox {localhost/norsh}
SKIP imap_headers() incorrect parameter count reason: could not connect to mailbox {localhost/norsh}
SKIP imap_num_msg() incorrect parameter count reason: could not connect to mailbox {localhost/norsh}
SKIP imap_expunge() incorrect parameter count reason: could not connect to mailbox {localhost/norsh}
SKIP imap_open() incorrect parameter count reason: could not connect to mailbox {localhost/norsh}
SKIP imap_ping() incorrect parameter count reason: could not connect to mailbox {localhost/norsh}
PASS imap_utf8() tests 自己解决 凡事都要靠自己
回复 3# 的帖子
楼主,你解决了吗。我也遇到了和你相同的问题。回复 4# 的帖子
恩 发你的安装信息出来 看看回复 5# 的帖子
我把代码贴到这篇稿子上了。https://bbs.vpser.net/thread-6882-1-2.html
页:
[1]