linux下php,imap安装手记

imap,一个类似pop3,优于pop3的东东。

简单记录一下安装过程

1. 下载imap_2007 (ftp.cac.washington.edu 可以下载到)

2. tar -zxf imap-xxxxx.tar.Z

cd imap-xxxxx
make slx
ln -sf c-client include
ln -sf c-client lib
进入php安装程序目录
./configure –with-openssl=/usr/local/ssl –with-imap-ssl=/usr/local/ssl –with-imap=../imap-xxxxx  (imap路径可以自己换)

注意,没有 enable ssl,编译不会报错,但是,执行php函数时,可能会导致一个 remote什么的错误

有些机器编译时,还会出现一个ext/imap/.libs/php_imap.o(.text+0×2b8d): In function `zif_imap_expunge’:

: undefined reference to `mail_expunge_full’的错误。

解决方法:在php安装目录找到 ext/imap/php_imap.c 增加以下代码
long mail_expunge_full (MAILSTREAM *stream,char *sequence,long options)
{
                    /* do the driver’s action */
return stream->dtb ? (*stream->dtb->expunge) (stream,sequence,options) : NIL;
}
重新编译即可。
Posted in 未分类 at 12月 12th, 2008. Trackback URI: trackback
Tags: , , ,

No Responses to “linux下php,imap安装手记”

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
请输入图片中的字符以验证你并非垃圾机器人. 点击图片收听验证码的语音版.
点击这里收听此验证码的语音版本