If you're having problems compiling on Linux like this:
checking whether build with IMAP works... no
configure: error: build test failed. Please check the config.log for details.
... then try adding: "--with-openssl" to your switches.
Not quite sure why but here's where I found the idea:
http://bugs.php.net/bug.php?id=29783
HTH,
J
インストール手順
これらの関数を動作させるには、--with-imap[=DIR] を指定して PHP をコンパイルする必要があります。DIR は c-client インストール時のプレフィックスです。上の例のような場合には --with-imap=/usr/local/imap-2000b を指定します。この場所は、上の指示にしたがってあなたが作成したディレクトリの 場所に依存します。Windows ユーザーは、php.ini で php_imap.dll DLL を有効にします。
IMAP は Windows 2000 より前のバージョンではサポートされていません。 なぜなら、メールサーバーとの SSL 接続を有効にするために暗号化関数を 使用しているからです。
注意: c-client の設定によっては、これ以外に --with-imap-ssl=/path/to/openssl/ や --with-kerberos=/path/to/kerberos といったオプションを PHP の configure で指定する必要があります。
jimbomorrison+php at gmail dot com
08-Jun-2009 11:23
