LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-23-2007, 01:41 PM   #1
lionking_x
Member
 
Registered: Aug 2003
Posts: 36

Rep: Reputation: 15
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.)
 
Old 11-23-2007, 02:28 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913
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
 
Old 11-26-2007, 03:55 PM   #3
lionking_x
Member
 
Registered: Aug 2003
Posts: 36

Original Poster
Rep: Reputation: 15
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 !!!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling php with imap and imap-ssl the_ajp Linux - Software 1 04-18-2007 07:49 AM
Compile PHP with IMAP support ultrafluke Linux - Software 1 12-03-2004 01:04 PM
PHP and IMAP WebDesigner-EU Linux - General 3 11-06-2004 09:13 AM
IMAP works but IMAP TLS doesn't under PHP (Horde IMP) theparadigm Linux - Software 0 11-17-2003 01:35 AM
apache compile on RH9 - imap.tar.Z help llee Linux - Software 2 05-06-2003 02:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration