homepage Welcome to WebmasterWorld Guest from 54.226.10.234
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
Forum Library, Charter, Moderators: bakedjake

Linux, Unix, and *nix like Operating Systems Forum

    
PHP compiling problem in Ubuntu 11
php compiling source code
jerry95

5+ Year Member



 
Msg#: 4319372 posted 6:54 pm on May 29, 2011 (gmt 0)

Hello, I'm looking for help with the installation of PHP, I have taken all the steps necessary to compile it from source, I guess, I want it to have IMAP support and libxml for simple xml. Any way, when I configure it I get the following error, of which I have no idea where to look for. I'm installing in an Ubuntu 11 machine. The error is :

checking for utf8_mime2text signature... new
checking for U8T_DECOMPOSE...
configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information.


What does this mean? Previously in the compilation it checked for SSL support ok, so maybe this has to do with the IMAP configuration, but I really have no idea. The configuration to install PHP from source was:

./configure\
--with-apxs2=/usr/local/apache2/bin/apxs --with-mysql\
--prefix=/usr/local/apache2/php --enable-force-cgi-redirect\
--disable-cgi --with-zlib --with-imap=/usr/local/imap-2007a\
--with-imap-ssl=/usr/local/openssl --with-libxml-dir=/usr/local/libxml2

I also looked at the config.log and it seems to have trouble loading a script called configure.h, it says :configure:
failed program was:
#line 19324 "configure"
#include "confdefs.h"


And also includes a fatal error related to mail.h so I guess the error has to do with the imap addition, the complete log of which I'm talking is:

configure:48194: checking for IMAP SSL support
configure:48599:19: fatal error: /mail.h: No such file or directory
compilation terminated.
configure:48618: checking for utf8_mime2text signature
configure:48636: gcc -c -I conftest.c 1>&5
gcc: no input files
configure: failed program was:
#line 48623 "configure"
#include "confdefs.h"

#include <stdio.h>
#include <c-client.h>

int main() {

SIZEDTEXT *src, *dst;
utf8_mime2text(src, dst);

; return 0; }
configure:48665: checking for U8T_DECOMPOSE
configure:48681: gcc -c -I conftest.c 1>&5
gcc: no input files
configure: failed program was:
#line 48670 "configure"
#include "confdefs.h"

#include <c-client.h>

int main() {

int i = U8T_CANONICAL;

; return 0; }


Maybe I should note that I had problems installing IMAP toolkit and that files are not in the default /usr/local/ssl but in a directory /usr/local/openssl.

I don't know if this is the right forum to post this, if it's not, could anyone give me some guidance? I'm new to ubuntu but I decided to compile it from source so I don't have to add many functions later.

 

graeme_p

WebmasterWorld Senior Member 5+ Year Member



 
Msg#: 4319372 posted 7:17 am on Jun 1, 2011 (gmt 0)

Firstly, do you REALLY need to compile from source? Harder to do and you have to go through it every time you want to update rather than getting it updated along with everything else. You get updates faster IF you keep a close eye on when they come out, but its a LOT more work.

I decided to compile it from source so I don't have to add many functions later.


Rarely a problem in practice.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved