HELP : IMAP and PHP Compile
Folks,
I am totally stuck. I cannot seem to compile imap with php-4.4.7 OR php-5.2.4. I googled a lot, found many links but nothing seems to solve my problem. I am on SuSE 10.1. I used both the c-client libraries, imap-2006k.tar.Z & imap-2004g.tar.Z. Followed the instructions from http://www.fogcreek.com/FogBugz/KB/h...pgradePHP.html and http://www.php.net/imap/ When I try to configure with Imap,. ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql --enable-xml --with-imap=/usr/local/imap2004/ I get the following error, checking whether IMAP works... no configure: error: build test failed. Please check the config.log for details. When I look into the config.log, configure:44781: checking for U8T_CANONICAL configure:44797: gcc -c -I/usr/local/imap2004//include conftest.c 1>&5 configure: In function 'main': configure:44792: error: 'U8T_CANONICAL' undeclared (first use in this function) configure:44792: error: (Each undeclared identifier is reported only once configure:44792: error: for each function it appears in.) |
Have a look at the slackware build scripts on
http://slackware.osuosl.org/slackwar...php.SlackBuild http://slackware.osuosl.org/slackwar...ine.SlackBuild Cheers, Tink |
Finally resolved this.
For compiling this extension without compiling imap from sources I did (on SuSE 10.1) Install the following rpms: imap imap-devel NOW DO THIS: # mkdir /usr/include/imap/lib # cp /usr/lib/libc-client-PHP4.a /usr/include/imap/lib/libc-client.a Now configure line: ./configure --with-imap=/usr/include/imap Rock & Roll baby !!! |
All times are GMT -5. The time now is 01:14 AM. |